예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetassemblyconfigcriteria(ref DataRow row, Oeetassemblyconfigcriteria entity)
 {
     row.SetField("vawhse", entity.vawhse);
     row.SetField("assemblytype", entity.assemblytype);
     row.SetField("verno", entity.verno);
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Oeetassemblyconfigcriteria BuildOeetassemblyconfigcriteriaFromRow(DataRow row)
        {
            Oeetassemblyconfigcriteria entity = new Oeetassemblyconfigcriteria();

            entity.vawhse       = row.IsNull("vawhse") ? string.Empty : row.Field <string>("vawhse");
            entity.assemblytype = row.IsNull("assemblytype") ? string.Empty : row.Field <string>("assemblytype");
            entity.verno        = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            entity.prod         = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }