Skip to content

Commit

Permalink
co
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Oct 27, 2023
1 parent 8c33d5a commit 16e5f8b
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 4 deletions.
98 changes: 98 additions & 0 deletions FreeSql/FreeSql.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Providers/FreeSql.Provider.Xugu/XuguCodeFirst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ public XuguCodeFirst(IFreeSql orm, CommonUtils commonUtils, CommonExpression com

public override DbInfoResult GetDbInfo(Type type)
{
_dicCsToDb.TryGetValue(type, out var info);
if (info == null) return null;
return new DbInfoResult((int)info.type, info.dbtype, info.dbtypeFull, info.isnullable, info.defaultValue);

if (_dicCsToDb.TryGetValue(type, out var trydc)) return new DbInfoResult((int)trydc.type, trydc.dbtype, trydc.dbtypeFull, trydc.isnullable, trydc.defaultValue);
if (type.IsArray) return null;
var enumType = type.IsEnum ? type : null;
Expand Down

0 comments on commit 16e5f8b

Please sign in to comment.