public Sys_shopSort Clone() { Sys_shopSort sys_shopSort = new Sys_shopSort(); sys_shopSort.entityCus = entityCus.Clone(); return(sys_shopSort); }
public static IList <Sys_shopSort> TransDataTableToEntityList(DataTable dt) { IList <Sys_shopSort> list = new List <Sys_shopSort>(); Sys_shopSort sys_shopSort = null; for (int i = 0; i < dt.Rows.Count; i++) { sys_shopSort = new Sys_shopSort(); foreach (DataColumn column in dt.Columns) { sys_shopSort.EntityCustom.SetValue(column.ColumnName, dt.Rows[i][column]); } list.Add(sys_shopSort); } return(list); }