Skip to content

Commit

Permalink
- 改正 HashColumnType 为 HasColumnType
Browse files Browse the repository at this point in the history
  • Loading branch information
28810 authored and 28810 committed Jan 2, 2020
1 parent 63612d2 commit c27b3fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public EfCoreColumnFluent HasColumnName(string name)
_cf.Name(name);
return this;
}
public EfCoreColumnFluent HashColumnType(string dbtype)
public EfCoreColumnFluent HasColumnType(string dbtype)
{
_cf.DbType(dbtype);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void Test()
{
eb.ToTable("tb_song");
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.RowVersion).IsRowVersion();
Expand Down
2 changes: 1 addition & 1 deletion Extensions/FreeSql.Extensions.EfCoreFluentApi/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static void Test()
{
eb.ToTable("tb_song");
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.RowVersion).IsRowVersion();
Expand Down

0 comments on commit c27b3fe

Please sign in to comment.