Skip to content

Commit

Permalink
prepare 3.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliang-wt committed Sep 21, 2020
1 parent 0cd2108 commit a4d040f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
23 changes: 2 additions & 21 deletions src/WalkingTec.Mvvm.Core/Extensions/DCExtension.cs
Expand Up @@ -834,27 +834,8 @@ public static string GetFieldName<T>(this IDataContext self, Expression<Func<T,
public static string GetFieldName<T>(this IDataContext self, string fieldname)
{
var rv = self.Model.FindEntityType(typeof(T)).FindProperty(fieldname);
if (rv == null)
{
return "";
}
switch (self.DBType)
{
case DBTypeEnum.SqlServer:
return rv.SqlServer().ColumnName;
case DBTypeEnum.MySql:
return rv.MySql().ColumnName;
case DBTypeEnum.PgSql:
return rv.Npgsql().ColumnName;
case DBTypeEnum.Memory:
return rv.SqlServer().ColumnName;
case DBTypeEnum.SQLite:
return rv.Sqlite().ColumnName;
case DBTypeEnum.Oracle:
return rv.Oracle().ColumnName;
default:
return rv.SqlServer().ColumnName;
}
return rv?.GetColumnName();
}

public static string GetPropertyNameByFk(this IDataContext self, Type sourceType, string fkname)
{
Expand Down
2 changes: 1 addition & 1 deletion version.props
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>3.7.3</VersionPrefix>
<VersionPrefix>3.7.4</VersionPrefix>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit a4d040f

Please sign in to comment.