Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasglglsave(ref DataRow row, Sasglglsave entity)
 {
     row.SetField("state", entity.state);
     row.SetField("taxauth", entity.taxauth);
     row.SetField("provinceglno", entity.provinceglno);
     row.SetField("gstglno", entity.gstglno);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Sasglglsave BuildSasglglsaveFromRow(DataRow row)
        {
            Sasglglsave entity = new Sasglglsave();

            entity.state        = row.IsNull("state") ? string.Empty : row.Field <string>("state");
            entity.taxauth      = row.IsNull("taxauth") ? string.Empty : row.Field <string>("taxauth");
            entity.provinceglno = row.IsNull("provinceglno") ? string.Empty : row.Field <string>("provinceglno");
            entity.gstglno      = row.IsNull("gstglno") ? string.Empty : row.Field <string>("gstglno");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }