コード例 #1
0
        public static Userfieldsdefncriteria BuildUserfieldsdefncriteriaFromRow(DataRow row)
        {
            Userfieldsdefncriteria entity = new Userfieldsdefncriteria();

            entity.tablename   = row.IsNull("tablename") ? string.Empty : row.Field <string>("tablename");
            entity.customfield = row.IsNull("customfield") ? string.Empty : row.Field <string>("customfield");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromUserfieldsdefncriteria(ref DataRow row, Userfieldsdefncriteria entity)
 {
     row.SetField("tablename", entity.tablename);
     row.SetField("customfield", entity.customfield);
 }