Added a new type of entities called DynamicEntity. Usage:
DynamicEntity article = new DynamicEntity("Article");
article.Add("Description");
article.Fill(Condition.Member("Reference") == "SQL2008");
Now we can easily query data with dynamic columns without have to create the entity class (usefully for query few data without have to fill a complete entity object).
Naturally there is also a DynamicEntityList to manage a list of DynamicEntity objects. Usage:
DynamicEntityList dynamicEntityList = new DynamicEntityList("Client");
dynamicEntityList.Add("Name");
dynamicEntityList.Fill();
This kind of dynamic entities dont use reflection and so them structure is not cached maximizing the available memory and performance from the first filled entity.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Added a new type of entities called DynamicEntity. Usage:
DynamicEntity article = new DynamicEntity("Article");
article.Add("Description");
article.Fill(Condition.Member("Reference") == "SQL2008");
Now we can easily query data with dynamic columns without have to create the entity class (usefully for query few data without have to fill a complete entity object).
Naturally there is also a DynamicEntityList to manage a list of DynamicEntity objects. Usage:
DynamicEntityList dynamicEntityList = new DynamicEntityList("Client");
dynamicEntityList.Add("Name");
dynamicEntityList.Fill();
This kind of dynamic entities dont use reflection and so them structure is not cached maximizing the available memory and performance from the first filled entity.