Beispiel #1
0
        public static Sausergrplookup BuildSausergrplookupFromRow(DataRow row)
        {
            Sausergrplookup entity = new Sausergrplookup();

            entity.usergroup = row.IsNull("usergroup") ? string.Empty : row.Field <string>("usergroup");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSausergrplookup(ref DataRow row, Sausergrplookup entity)
 {
     row.SetField("usergroup", entity.usergroup);
     row.SetField("userfield", entity.userfield);
 }