Korzh.com developer tools forums :: View topic - meta architecture question: why is Model in Query?
Korzh.com
home : Community forums  FAQFAQ   SearchSearch  |  RegisterRegister  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
meta architecture question: why is Model in Query?

 
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> Easy Query general
View previous topic :: View next topic  
Author Message
gerry lowry
Veteran


Joined: 18 Jun 2010
Posts: 39
Location: alliston ontario canada

PostPosted: Mon Jul 05, 2010 10:47 pm    Post subject: meta architecture question: why is Model in Query? Reply with quote

Hi,

I was tracing my ASP.NET WebForms application
and I noticed that Korch.EasyQuery.Query
contains much redundant values from Korch.EasyQuery.DataModel.

Example: Description, Links, and Tables

Comment: with a large DataModel, it seems this adds a lot of bloat.
Additionally, in the WebForms version, you create both a
Session["DataModel"] and a Session["Query"], example:

Korzh.EasyQuery.DataModel easyQueryNetDataModel = new Korzh.EasyQuery.DataModel();
easyQueryNetDataModel.LoadFromString(selectDataModelXml(DataModelID));
Session["DataModel"] = easyQueryNetDataModel;
Korzh.EasyQuery.Query easyQueryNetQuery = new Korzh.EasyQuery.Query();
easyQueryNetQuery.Model = easyQueryNetDataModel;
Session["Query"] = easyQueryNetQuery;


QUESTION: why so much redundancy?
(example, instead of storing the DataModel in Query.Model, why not just reference the actual DataModel?)
_________________
Gerry Lowry · twitter=.@gerryLowry1947
programmers' mantras:
· TIMTOWTDI=.There Is More Than One Way To Do It
· If your only tool is a hammer then all of your problems tend to look like nails.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Admin
Site Admin


Joined: 07 Nov 2005
Posts: 272

PostPosted: Tue Jul 06, 2010 5:19 am    Post subject: Reply with quote

Hello,

You possibly have mistaken about redundancy.
First of all there is not Description, Links or Tables properties in Query object.

Secondly, Query object contains only a reference to DataModel object. It does not copy the whole object during assignment.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> Easy Query general All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group