public bool GetTable(SqlBaseItemXml basemodel, SqlServerItemXml item, SqlDatabaseItemXml item2) { var tablelist = DBConfig.GetTableItemXmlConfigList(basemodel, item2.Number); var tablelist2 = tablelist.Where(m => m.IsUse == true && m.IsWrite == true).ToList(); foreach (var tableobjectitem2 in tablelist2) { var temp3 = DBProxy.GetDBAccess(item.DBType).TableStorageSize(currentconnstrdatabase, tableobjectitem2.TableName); var temp3count = DBProxy.GetDBAccess(item.DBType).TableCount(currentconnstrdatabase, tableobjectitem2.TableName); if (tableobjectitem2.StorageSize > temp3 && tableobjectitem2.RowNum > temp3count) { currenttable = tableobjectitem2.TableName; currenttablenumber = tableobjectitem2.Number; isposition = true; return(isposition); } else { new ManagerConfig().TableChangeIsWrite(tableobjectitem2); } } if (item2.TableNum > tablelist.Count() && item2.IsCreate) { var temptable = DBWrite.AddTable(currentconnstrdatabase, item, item2); currenttable = temptable.TableName; currenttablenumber = temptable.Number; isposition = true; return(isposition); } return(isposition); }