Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaaautabledetail(ref DataRow row, Saaautabledetail entity)
 {
     row.SetField("fieldname", entity.fieldname);
     row.SetField("lbl", entity.lbl);
     row.SetField("ty", entity.ty);
     row.SetField("fmt", entity.fmt);
     row.SetField("selectfl", entity.selectfl);
     row.SetField("detailrowid", entity.detailrowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Saaautabledetail BuildSaaautabledetailFromRow(DataRow row)
        {
            Saaautabledetail entity = new Saaautabledetail();

            entity.fieldname   = row.IsNull("fieldname") ? string.Empty : row.Field <string>("fieldname");
            entity.lbl         = row.IsNull("lbl") ? string.Empty : row.Field <string>("lbl");
            entity.ty          = row.IsNull("ty") ? string.Empty : row.Field <string>("ty");
            entity.fmt         = row.IsNull("fmt") ? string.Empty : row.Field <string>("fmt");
            entity.selectfl    = row.Field <bool>("selectfl");
            entity.detailrowid = row.Field <byte[]>("detailrowid").ToStringEncoded();
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }