次のように1654948748 FreeSqlは、構成データベース・エンティティに、外部特性、プロパティ名を命名一貫した流暢APIメソッドの使用を提供します。
fsql.CodeFirst
.ConfigEntity<TestFluenttb1>(a => {
a.Name("xxdkdkdk1").SelectFilter("a.Id22 > 0");
a.Property(b => b.Id).Name("Id22").IsIdentity(true);
a.Property(b => b.name).DbType("varchar(100)").IsNullable(true); }) .ConfigEntity<TestFluenttb2>(a => { a.Name("xxdkdkdk2").SelectFilter("a.Idx > 0"); a.Property(b => b.Id).Name("Id22").IsIdentity(true); a.Property(b => b.name).DbType("varchar(100)").IsNullable(true); }); //以下为实体类 class TestFluenttb1 { public int Id { get; set; } public string name { get; set; } = "defaultValue"; } [Table(Name = "cccccdddwww")] class TestFluenttb2 { public int Id { get; set; } public string name { get; set; } = "defaultValue"; }
fsqlはIFreeSqlオブジェクトであります
優先順位
FluentApi <エンティティプロパティ
シリーズナビゲーション
-
(D)エンティティプロパティ流暢アピ
次のように1654948748 FreeSqlは、構成データベース・エンティティに、外部特性、プロパティ名を命名一貫した流暢APIメソッドの使用を提供します。
fsql.CodeFirst
.ConfigEntity<TestFluenttb1>(a => {
a.Name("xxdkdkdk1").SelectFilter("a.Id22 > 0");
a.Property(b => b.Id).Name("Id22").IsIdentity(true);
a.Property(b => b.name).DbType("varchar(100)").IsNullable(true); }) .ConfigEntity<TestFluenttb2>(a => { a.Name("xxdkdkdk2").SelectFilter("a.Idx > 0"); a.Property(b => b.Id).Name("Id22").IsIdentity(true); a.Property(b => b.name).DbType("varchar(100)").IsNullable(true); }); //以下为实体类 class TestFluenttb1 { public int Id { get; set; } public string name { get; set; } = "defaultValue"; } [Table(Name = "cccccdddwww")] class TestFluenttb2 { public int Id { get; set; } public string name { get; set; } = "defaultValue"; }
fsqlはIFreeSqlオブジェクトであります
優先順位
FluentApi <エンティティプロパティ
シリーズナビゲーション
-
(D)エンティティプロパティ流暢アピ