Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeioloadlnhistcriteria(ref DataRow row, Oeioloadlnhistcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("fromlineno", entity.fromlineno);
     row.SetField("tolineno", entity.tolineno);
     row.SetField("customparam", entity.customparam);
 }
Esempio n. 2
0
        public static Oeioloadlnhistcriteria BuildOeioloadlnhistcriteriaFromRow(DataRow row)
        {
            Oeioloadlnhistcriteria entity = new Oeioloadlnhistcriteria();

            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.fromlineno  = row.IsNull("fromlineno") ? 0 : row.Field <int>("fromlineno");
            entity.tolineno    = row.IsNull("tolineno") ? 0 : row.Field <int>("tolineno");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }