diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs index c312744..4154946 100644 --- a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs +++ b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs @@ -154,7 +154,9 @@ namespace Falcon.SugarApi.DatabaseDefinitions var type = types[i]; if (!InitdTable.Any(m => m == type.FullName)) { this.CodeFirst.BackupTable().SetStringDefaultLength(200).InitTables(type); - InitdTable.Add(type.FullName); + if (type.FullName != null) { + InitdTable.Add(type.FullName); + } } }