Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadoetaxcomboscriteria(ref DataRow row, Loadoetaxcomboscriteria entity)
 {
     row.SetField("statecd", entity.statecd);
     row.SetField("countycd", entity.countycd);
     row.SetField("citycd", entity.citycd);
     row.SetField("other1cd", entity.other1cd);
     row.SetField("other2cd", entity.other2cd);
     row.SetField("taxauth", entity.taxauth);
 }
Beispiel #2
0
        public static Loadoetaxcomboscriteria BuildLoadoetaxcomboscriteriaFromRow(DataRow row)
        {
            Loadoetaxcomboscriteria entity = new Loadoetaxcomboscriteria();

            entity.statecd  = row.IsNull("statecd") ? string.Empty : row.Field <string>("statecd");
            entity.countycd = row.IsNull("countycd") ? string.Empty : row.Field <string>("countycd");
            entity.citycd   = row.IsNull("citycd") ? string.Empty : row.Field <string>("citycd");
            entity.other1cd = row.IsNull("other1cd") ? string.Empty : row.Field <string>("other1cd");
            entity.other2cd = row.IsNull("other2cd") ? string.Empty : row.Field <string>("other2cd");
            entity.taxauth  = row.IsNull("taxauth") ? string.Empty : row.Field <string>("taxauth");
            return(entity);
        }