Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaeiextendfields(ref DataRow row, Saeiextendfields entity)
 {
     row.SetField("fieldlabel", entity.fieldlabel);
     row.SetField("fieldname", entity.fieldname);
     row.SetField("fieldvalue", entity.fieldvalue);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Saeiextendfields BuildSaeiextendfieldsFromRow(DataRow row)
        {
            Saeiextendfields entity = new Saeiextendfields();

            entity.fieldlabel = row.IsNull("fieldlabel") ? string.Empty : row.Field <string>("fieldlabel");
            entity.fieldname  = row.IsNull("fieldname") ? string.Empty : row.Field <string>("fieldname");
            entity.fieldvalue = row.IsNull("fieldvalue") ? string.Empty : row.Field <string>("fieldvalue");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }