示例#1
0
        public static Oeblanketcriteria BuildOeblanketcriteriaFromRow(DataRow row)
        {
            Oeblanketcriteria entity = new Oeblanketcriteria();

            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeblanketcriteria(ref DataRow row, Oeblanketcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("customparam", entity.customparam);
 }