Always remain updated about current software development trends

Articles having tag: O

LLBLGen Pro feature highlights: assigning attributes based on rules to properties in generated code.

(This post is part of a series of posts about features of theLLBLGen Prosystem)One of the things which makes some people hate generated code is that it's effectively 'read-only' code: changing it will make you run the risk that your changes are likely gone...

Entity Framework Code First: Get Entities From Local Cache or the Database

Entity Framework Code First makes it very easy to access local (first level) cache: you just access theDbSet<T>.Localproperty. This way, no query is sent to the database, only performed in already loaded entities.If you want to first search local cache,...

LLBLGen Pro v3.5 has been released!

Last weekend we releasedLLBLGen Prov3.5! Below the list of what's new in this release. Of course, not everything is on this list, like the large amount of work we put in refactoring the runtime framework. The refactoring was necessary because our framework...

NHibernate Metadata

I know that O/RMs like NHibernate are supposed to shield us from the gory database internals such as tables, views, columns and such; however, at times, I do have the need to know how my domain model translates to the database. NHibernate, of course, provides...

Querying an Uninitialized Collection with NHibernate

I have talked before about theproblemof accessing an uninitialized collection and presented asolutionthat allows us to see if the collection contains elements on the DB, and how many there are, without actually loading them. Now I have a general purpose solution...

NHibernate Pitfalls: SQL Queries and Parameter Prefix

This is part of a series of posts about NHibernate Pitfalls. See the entire collectionhere.When you execute an SQL query with NHibernate with named parameters, you would perhaps expect them to be prefixed with a symbol specific to the current DB you are accessing,...

Checking if an Unloaded Collection Contains Elements with NHibernate

If you want to know if an unloaded collection in an entity contains elements, or count them, without actually loading them, you need to use a custom query; that is because theCountproperty (if the collection is not mapped withlazy="extra") and the...

NHibernate Pitfalls: Querying a Collection Count

This is part of a series of posts about NHibernate Pitfalls. See the entire collectionhere.Beware when querying a one-to-many collection (bag,set,map,list, etc) with the LINQ standard operatorsAny()orCount()(or even with the collection's ownCountproperty:...

Lazy Entities and Virtual Members

This is part of a series of posts about NHibernate Pitfalls. See the entire collectionhere.If you want to lazily load an entity as part of a many to one or one to one endpoint, you must declare it as lazy. This way, a proxy can be generated for it, by subclassing...

ORM Profiler v1.0 has been released!

We have released v1.0 of our new product,ORM Profiler! ORM Profiler is a tool for data-access analysis, a must-have if you really want to know what's going on inside your application when it accesses the database.See this earlier blogpostfor a more detailed...