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

            entity.callingfunction = row.IsNull("callingfunction") ? string.Empty : row.Field <string>("callingfunction");
            entity.tableRowid      = row.Field <byte[]>("table-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 UpdateRowFromSasgaddonscriteria(ref DataRow row, Sasgaddonscriteria entity)
 {
     row.SetField("callingfunction", entity.callingfunction);
     row.SetField("table-rowid", entity.tableRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }