Пример #1
0
        public static Sasbrrule BuildSasbrruleFromRow(DataRow row)
        {
            Sasbrrule entity = new Sasbrrule();

            entity.ruletype  = row.IsNull("ruletype") ? string.Empty : row.Field <string>("ruletype");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasbrrule(ref DataRow row, Sasbrrule entity)
 {
     row.SetField("ruletype", entity.ruletype);
     row.SetField("descrip", entity.descrip);
     row.SetField("userfield", entity.userfield);
 }