Ejemplo n.º 1
0
        public static Sasgaddonstaxability BuildSasgaddonstaxabilityFromRow(DataRow row)
        {
            Sasgaddonstaxability entity = new Sasgaddonstaxability();

            entity.taxabletydesc = row.IsNull("taxabletydesc") ? string.Empty : row.Field <string>("taxabletydesc");
            entity.taxabletyval  = row.IsNull("taxabletyval") ? string.Empty : row.Field <string>("taxabletyval");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasgaddonstaxability(ref DataRow row, Sasgaddonstaxability entity)
 {
     row.SetField("taxabletydesc", entity.taxabletydesc);
     row.SetField("taxabletyval", entity.taxabletyval);
     row.SetField("userfield", entity.userfield);
 }