Ejemplo n.º 1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, IcsgkBase entity)
 {
     row.SetField("corpid", entity.corpid);
     row.SetField("storeid", entity.storeid);
     row.SetField("tag", entity.tag);
     row.SetField("icsgkRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsgkBase(ref DataRow row, IcsgkBase entity)
 {
     row.SetField("corpid", entity.corpid);
     row.SetField("storeid", entity.storeid);
     row.SetField("tag", entity.tag);
     row.SetField("tag-type", entity.tagType);
     row.SetField("tagno", entity.tagno);
     row.SetField("reference-prod", entity.referenceProd);
     row.SetField("reference-pcat", entity.referencePcat);
     row.SetField("level1", entity.level1);
     row.SetField("level2", entity.level2);
     row.SetField("level3", entity.level3);
     row.SetField("level4", entity.level4);
     row.SetField("level5", entity.level5);
     row.SetField("level6", entity.level6);
     row.SetField("level7", entity.level7);
     row.SetField("level8", entity.level8);
     row.SetField("level9", entity.level9);
     row.SetField("level10", entity.level10);
     row.SetField("gav", entity.gav);
     row.SetField("nodeid", entity.nodeid);
     row.SetField("link", entity.link);
     row.SetField("authgrplist", entity.authgrplist);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("transproc", entity.transproc);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("statustype", entity.statustype);
     row.SetField("statusdt", entity.statusdt);
     row.SetField("ecbatchnm", entity.ecbatchnm);
     row.SetField("icsgkRowID", entity.rowID.ToByteArray());
 }