示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCcbuildimpactcriteria(ref DataRow row, Ccbuildimpactcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("emp_num", entity.empNum);
     row.SetField("ccbldimpactuserfield", entity.ccbldimpactuserfield);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Ccbuildimpactcriteria BuildCcbuildimpactcriteriaFromRow(DataRow row)
        {
            Ccbuildimpactcriteria entity = new Ccbuildimpactcriteria();

            entity.coNum  = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum  = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.empNum = row.IsNull("emp_num") ? string.Empty : row.Field <string>("emp_num");
            entity.ccbldimpactuserfield = row.IsNull("ccbldimpactuserfield") ? string.Empty : row.Field <string>("ccbldimpactuserfield");
            entity.userfield            = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }