Exemplo n.º 1
0
        public static Sasgaddonstaxgroup BuildSasgaddonstaxgroupFromRow(DataRow row)
        {
            Sasgaddonstaxgroup entity = new Sasgaddonstaxgroup();

            entity.groupname  = row.IsNull("groupname") ? string.Empty : row.Field <string>("groupname");
            entity.groupvalue = row.IsNull("groupvalue") ? string.Empty : row.Field <string>("groupvalue");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasgaddonstaxgroup(ref DataRow row, Sasgaddonstaxgroup entity)
 {
     row.SetField("groupname", entity.groupname);
     row.SetField("groupvalue", entity.groupvalue);
     row.SetField("userfield", entity.userfield);
 }