Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfdesignsummary(ref DataRow row, Glsfdesignsummary entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("recType", entity.recType);
     row.SetField("recDesc", entity.recDesc);
     row.SetField("recInfo", entity.recInfo);
     row.SetField("comment", entity.comment);
     row.SetField("glsfRowid", entity.glsfRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Glsfdesignsummary BuildGlsfdesignsummaryFromRow(DataRow row)
        {
            Glsfdesignsummary entity = new Glsfdesignsummary();

            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.recType   = row.IsNull("recType") ? string.Empty : row.Field <string>("recType");
            entity.recDesc   = row.IsNull("recDesc") ? string.Empty : row.Field <string>("recDesc");
            entity.recInfo   = row.IsNull("recInfo") ? string.Empty : row.Field <string>("recInfo");
            entity.comment   = row.IsNull("comment") ? string.Empty : row.Field <string>("comment");
            entity.glsfRowid = row.Field <byte[]>("glsfRowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }