mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 改正 HashColumnType 为 HasColumnType
This commit is contained in:
parent
63612d20fd
commit
c27b3fea1f
@ -21,7 +21,7 @@ namespace FreeSql.Extensions.EfCoreFluentApi
|
|||||||
_cf.Name(name);
|
_cf.Name(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public EfCoreColumnFluent HashColumnType(string dbtype)
|
public EfCoreColumnFluent HasColumnType(string dbtype)
|
||||||
{
|
{
|
||||||
_cf.DbType(dbtype);
|
_cf.DbType(dbtype);
|
||||||
return this;
|
return this;
|
||||||
|
@ -21,7 +21,7 @@ namespace FreeSql.Extensions.EfCoreFluentApi
|
|||||||
{
|
{
|
||||||
eb.ToTable("tb_song");
|
eb.ToTable("tb_song");
|
||||||
eb.Ignore(a => a.Field1);
|
eb.Ignore(a => a.Field1);
|
||||||
eb.Property(a => a.Title).HashColumnType("varchar(50)").IsRequired();
|
eb.Property(a => a.Title).HasColumnType("varchar(50)").IsRequired();
|
||||||
eb.Property(a => a.Url).HasMaxLength(100);
|
eb.Property(a => a.Url).HasMaxLength(100);
|
||||||
|
|
||||||
eb.Property(a => a.RowVersion).IsRowVersion();
|
eb.Property(a => a.RowVersion).IsRowVersion();
|
||||||
|
@ -12,7 +12,7 @@ static void Test()
|
|||||||
{
|
{
|
||||||
eb.ToTable("tb_song");
|
eb.ToTable("tb_song");
|
||||||
eb.Ignore(a => a.Field1);
|
eb.Ignore(a => a.Field1);
|
||||||
eb.Property(a => a.Title).HashColumnType("varchar(50)").IsRequired();
|
eb.Property(a => a.Title).HasColumnType("varchar(50)").IsRequired();
|
||||||
eb.Property(a => a.Url).HasMaxLength(100);
|
eb.Property(a => a.Url).HasMaxLength(100);
|
||||||
|
|
||||||
eb.Property(a => a.RowVersion).IsRowVersion();
|
eb.Property(a => a.RowVersion).IsRowVersion();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user