Skip to content

Commit c27b3fe

Browse files
2881028810
authored andcommitted
- 改正 HashColumnType 为 HasColumnType
1 parent 63612d2 commit c27b3fe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Extensions/FreeSql.Extensions.EfCoreFluentApi/EfCoreColumnFluent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public EfCoreColumnFluent HasColumnName(string name)
2121
_cf.Name(name);
2222
return this;
2323
}
24-
public EfCoreColumnFluent HashColumnType(string dbtype)
24+
public EfCoreColumnFluent HasColumnType(string dbtype)
2525
{
2626
_cf.DbType(dbtype);
2727
return this;

Extensions/FreeSql.Extensions.EfCoreFluentApi/ICodeFirstExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static void Test()
2121
{
2222
eb.ToTable("tb_song");
2323
eb.Ignore(a => a.Field1);
24-
eb.Property(a => a.Title).HashColumnType("varchar(50)").IsRequired();
24+
eb.Property(a => a.Title).HasColumnType("varchar(50)").IsRequired();
2525
eb.Property(a => a.Url).HasMaxLength(100);
2626

2727
eb.Property(a => a.RowVersion).IsRowVersion();

Extensions/FreeSql.Extensions.EfCoreFluentApi/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static void Test()
1212
{
1313
eb.ToTable("tb_song");
1414
eb.Ignore(a => a.Field1);
15-
eb.Property(a => a.Title).HashColumnType("varchar(50)").IsRequired();
15+
eb.Property(a => a.Title).HasColumnType("varchar(50)").IsRequired();
1616
eb.Property(a => a.Url).HasMaxLength(100);
1717

1818
eb.Property(a => a.RowVersion).IsRowVersion();

0 commit comments

Comments
 (0)