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

            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.numsegments  = row.IsNull("numsegments") ? 0 : row.Field <int>("numsegments");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetassemblynonstockcriteria(ref DataRow row, Oeetassemblynonstockcriteria entity)
 {
     row.SetField("vawhse", entity.vawhse);
     row.SetField("assemblytype", entity.assemblytype);
     row.SetField("verno", entity.verno);
     row.SetField("prod", entity.prod);
     row.SetField("numsegments", entity.numsegments);
     row.SetField("userfield", entity.userfield);
 }