public EntityCustom Clone()
        {
            EntityCustom entityCustom = new EntityCustom(Name);

            for (int i = 0; i < Fields.Count; i++)
            {
                entityCustom[Fields[i].FieldName] = Fields[i].FieldValue;
            }
            return(entityCustom);
        }
        public static IList <EntityCustom> TransDataTableToEntityCustomList(DataTable dt, string name)
        {
            IList <EntityCustom> list         = new List <EntityCustom>();
            EntityCustom         entityCustom = null;

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                entityCustom = new EntityCustom(name);
                foreach (DataColumn column in dt.Columns)
                {
                    entityCustom.SetValue(column.ColumnName, dt.Rows[i][column]);
                }
                list.Add(entityCustom);
            }
            return(list);
        }
 public Sp_itemContent()
 {
     this.entityCus = new EntityCustom("sp_itemContent");
 }
Beispiel #4
0
 public Sys_sysConfig()
 {
     entityCus = new EntityCustom("sys_sysConfig");
 }
 public Sys_sysAddress()
 {
     this.entityCus = new EntityCustom("sys_sysAddress");
 }
Beispiel #6
0
 public Sys_sysSort()
 {
     entityCus = new EntityCustom("sys_sysSort");
 }
Beispiel #7
0
 public Sp_sysSort()
 {
     this.entityCus = new EntityCustom("sp_sysSort");
 }
Beispiel #8
0
 public Sys_sizeGroup()
 {
     entityCus = new EntityCustom("sys_sizegroup");
 }
 public Sys_sysPropertyValue()
 {
     entityCus = new EntityCustom("sys_sysPropertyValue");
 }
Beispiel #10
0
 public Sp_item()
 {
     this.entityCus = new EntityCustom("sp_item");
 }
Beispiel #11
0
 public Sys_sysProperty()
 {
     entityCus = new EntityCustom("sys_sysProperty");
 }
Beispiel #12
0
 public Sys_shopShip()
 {
     entityCus = new EntityCustom("sys_shopShip");
 }
 public Sp_foodSecurity()
 {
     this.entityCus = new EntityCustom("sp_foodSecurity");
 }
 public Sp_customPropertyValue()
 {
     this.entityCus = new EntityCustom("sp_customPropertyValue");
 }
 public Sp_customProperty()
 {
     this.entityCus = new EntityCustom("sp_customProperty");
 }
 public Sys_sysEnumItem()
 {
     this.entityCus = new EntityCustom("sys_sysEnumItem");
 }
Beispiel #17
0
 public Sp_pictures()
 {
     this.entityCus = new EntityCustom("sp_pictures");
 }
 public Sys_sizeDetail()
 {
     entityCus = new EntityCustom("sys_sizedetail");
 }