Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGetnotelistcriteria(ref DataRow row, Getnotelistcriteria entity)
 {
     row.SetField("tablename", entity.tablename);
     row.SetField("primarykey", entity.primarykey);
     row.SetField("secondarykey", entity.secondarykey);
     row.SetField("requiredonlyfl", entity.requiredonlyfl);
     row.SetField("textdelimiter", entity.textdelimiter);
     row.SetField("userfield", entity.userfield);
     row.SetField("selectedcategories", entity.selectedcategories);
 }
Ejemplo n.º 2
0
        public static Getnotelistcriteria BuildGetnotelistcriteriaFromRow(DataRow row)
        {
            Getnotelistcriteria entity = new Getnotelistcriteria();

            entity.tablename          = row.IsNull("tablename") ? string.Empty : row.Field <string>("tablename");
            entity.primarykey         = row.IsNull("primarykey") ? string.Empty : row.Field <string>("primarykey");
            entity.secondarykey       = row.IsNull("secondarykey") ? string.Empty : row.Field <string>("secondarykey");
            entity.requiredonlyfl     = row.Field <bool>("requiredonlyfl");
            entity.textdelimiter      = row.IsNull("textdelimiter") ? string.Empty : row.Field <string>("textdelimiter");
            entity.userfield          = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            entity.selectedcategories = row.IsNull("selectedcategories") ? string.Empty : row.Field <string>("selectedcategories");
            return(entity);
        }