Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaeggroups(ref DataRow row, Saeggroups entity)
 {
     row.SetField("oper", entity.oper);
     row.SetField("groupnm", entity.groupnm);
     row.SetField("descrip", entity.descrip);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Saeggroups BuildSaeggroupsFromRow(DataRow row)
        {
            Saeggroups entity = new Saeggroups();

            entity.oper      = row.IsNull("oper") ? string.Empty : row.Field <string>("oper");
            entity.groupnm   = row.IsNull("groupnm") ? string.Empty : row.Field <string>("groupnm");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }