示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGldivisioncreate(ref DataRow row, Gldivisioncreate entity)
 {
     row.SetField("gltitle", entity.gltitle);
     row.SetField("lookupnm", entity.lookupnm);
     row.SetField("accttype", entity.accttype);
     row.SetField("baltype", entity.baltype);
     row.SetField("glrptgroup", entity.glrptgroup);
     row.SetField("printtype", entity.printtype);
     row.SetField("manpostfl", entity.manpostfl);
     row.SetField("glsa-rowid", entity.glsaRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Gldivisioncreate BuildGldivisioncreateFromRow(DataRow row)
        {
            Gldivisioncreate entity = new Gldivisioncreate();

            entity.gltitle    = row.IsNull("gltitle") ? string.Empty : row.Field <string>("gltitle");
            entity.lookupnm   = row.IsNull("lookupnm") ? string.Empty : row.Field <string>("lookupnm");
            entity.accttype   = row.IsNull("accttype") ? string.Empty : row.Field <string>("accttype");
            entity.baltype    = row.Field <bool>("baltype");
            entity.glrptgroup = row.IsNull("glrptgroup") ? string.Empty : row.Field <string>("glrptgroup");
            entity.printtype  = row.Field <bool>("printtype");
            entity.manpostfl  = row.Field <bool>("manpostfl");
            entity.glsaRowid  = row.Field <byte[]>("glsa-rowid").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }