mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
-
This commit is contained in:
@@ -17,7 +17,7 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
//Unit Test
|
/***Unit Test***/
|
||||||
//new Field(1).Init();
|
//new Field(1).Init();
|
||||||
//new Where(1).Init();
|
//new Where(1).Init();
|
||||||
//new Method(1).Init();
|
//new Method(1).Init();
|
||||||
@@ -29,7 +29,7 @@ namespace OrmTest
|
|||||||
//new Delete(1).Init();
|
//new Delete(1).Init();
|
||||||
new Mapping(1).Init();
|
new Mapping(1).Init();
|
||||||
|
|
||||||
//Performance Test
|
/***Performance Test***/
|
||||||
//new SqlSugarPerformance(100).Select();
|
//new SqlSugarPerformance(100).Select();
|
||||||
|
|
||||||
|
|
||||||
|
@@ -53,7 +53,6 @@ namespace SqlSugar
|
|||||||
result.DbTableName = sugarTable.TableName;
|
result.DbTableName = sugarTable.TableName;
|
||||||
}
|
}
|
||||||
result.Type = type;
|
result.Type = type;
|
||||||
result.Type.GetProperties();
|
|
||||||
result.EntityName = result.Type.Name;
|
result.EntityName = result.Type.Name;
|
||||||
result.Columns = new List<EntityColumnInfo>();
|
result.Columns = new List<EntityColumnInfo>();
|
||||||
SetColumns(result);
|
SetColumns(result);
|
||||||
@@ -115,6 +114,7 @@ namespace SqlSugar
|
|||||||
column.DbTableName = result.DbTableName;
|
column.DbTableName = result.DbTableName;
|
||||||
column.EnitytName = result.EntityName;
|
column.EnitytName = result.EntityName;
|
||||||
column.PropertyName = property.Name;
|
column.PropertyName = property.Name;
|
||||||
|
column.PropertyInfo = property;
|
||||||
if (sugarColumn.IsNullOrEmpty())
|
if (sugarColumn.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
column.DbColumnName = property.Name;
|
column.DbColumnName = property.Name;
|
||||||
|
@@ -24,7 +24,7 @@ namespace SqlSugar
|
|||||||
var mappingInfo = context
|
var mappingInfo = context
|
||||||
.MappingColumns
|
.MappingColumns
|
||||||
.FirstOrDefault(it => it.EntityPropertyName.Equals(name, StringComparison.CurrentCultureIgnoreCase));
|
.FirstOrDefault(it => it.EntityPropertyName.Equals(name, StringComparison.CurrentCultureIgnoreCase));
|
||||||
return (mappingInfo == null ? "["+name+"]" : mappingInfo.DbColumnName);
|
return (mappingInfo == null ? "["+name+"]" : "["+mappingInfo.DbColumnName+"]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user