mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Add demo
This commit is contained in:
@@ -17,6 +17,16 @@ namespace OrmTest
|
||||
|
||||
db.QueryableByObject(typeof(Order)).AS("Order").ToList();
|
||||
db.QueryableByObject(typeof(Order)).AS("\"public\".Order").ToList();
|
||||
|
||||
db.CodeFirst.InitTables<Unitdfsas>();
|
||||
db.Insertable(new Unitdfsas() { GridX = new double[] { 1 } }).ExecuteCommand();
|
||||
var list=db.Queryable<Unitdfsas>().ToList();
|
||||
}
|
||||
public class Unitdfsas
|
||||
{
|
||||
[SugarColumn(ColumnDataType = "double precision []", IsArray = true)]
|
||||
|
||||
public double[] GridX { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user