Exemplo n.º 1
0
        public static Pdmerridpdsc2 BuildPdmerridpdsc2FromRow(DataRow row)
        {
            Pdmerridpdsc2 entity = new Pdmerridpdsc2();

            entity.pdRowid   = row.Field <byte[]>("pdRowid").ToStringEncoded();
            entity.cErrorMsg = row.IsNull("cErrorMsg") ? string.Empty : row.Field <string>("cErrorMsg");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdmerridpdsc2(ref DataRow row, Pdmerridpdsc2 entity)
 {
     row.SetField("pdRowid", entity.pdRowid.ToByteArray());
     row.SetField("cErrorMsg", entity.cErrorMsg);
     row.SetField("userfield", entity.userfield);
 }