예제 #1
0
        public static Pdemdeletefromset BuildPdemdeletefromsetFromRow(DataRow row)
        {
            Pdemdeletefromset entity = new Pdemdeletefromset();

            entity.pvPdmlineRowid = row.Field <byte[]>("pv_pdmline_rowid").ToStringEncoded();
            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 UpdateRowFromPdemdeletefromset(ref DataRow row, Pdemdeletefromset entity)
 {
     row.SetField("pv_pdmline_rowid", entity.pvPdmlineRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }