示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeblanketcheckshiptosingle(ref DataRow row, Oeblanketcheckshiptosingle entity)
 {
     row.SetField("name", entity.name);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("shipviadesc", entity.shipviadesc);
     row.SetField("shiptonotesfl", entity.shiptonotesfl);
     row.SetField("arssrowid", entity.arssrowid.ToByteArray());
 }
示例#2
0
        public static Oeblanketcheckshiptosingle BuildOeblanketcheckshiptosingleFromRow(DataRow row)
        {
            Oeblanketcheckshiptosingle entity = new Oeblanketcheckshiptosingle();

            entity.name          = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.shipviaty     = row.IsNull("shipviaty") ? string.Empty : row.Field <string>("shipviaty");
            entity.shipviadesc   = row.IsNull("shipviadesc") ? string.Empty : row.Field <string>("shipviadesc");
            entity.shiptonotesfl = row.IsNull("shiptonotesfl") ? string.Empty : row.Field <string>("shiptonotesfl");
            entity.arssrowid     = row.Field <byte[]>("arssrowid").ToStringEncoded();
            return(entity);
        }