in

DotNetMarche

.NET Framework User Group delle Marche

Browse by Tags

  • Linq to NHibernate: how to query on a property without setter

    Recently I’ve started to play with Linq to NHibernate and I have to say it work pretty well for the scenarios I’m facing. It also helped me to ‘re-learn’ some things on NHibernate I usually forget. Let’s consider the case in which we have a class that have some properties without setters, the usual way...
    Posted to ExternalBlogs (Weblog) by Anonymous on 22 Dec 2009
  • Show NHibernate query in the trace of asp.net pages

    When you use NHibernate and asp.net one of the most interesting stuff is looking at sql generated for each page call. While NHProf is the best tool to accomplish this task, it is interesting to trace issued sql queries using asp.net trace engine. To accomplish this task is really straightforward thanks...
    Posted to ExternalBlogs (Weblog) by Anonymous on 13 Oct 2009
  • NHibernate ICriteria and filters

    I have a project where I need to access tables with millions of rows, the project was born without nhibernate so the database was not designed with ORM in mind. I decided to improve performances with an Indexed view that materialized a join between five tables, wrapped with another view that does a left...
    Posted to ExternalBlogs (Weblog) by Anonymous on 13 Oct 2009
  • Theta join in HQL – join with unrelated entities

    NHibernate HQL language is really powerful, and work in many scenario. Suppose you have those two classes. Action is an object capable of executing something, while ActionLog stores the result of the execution of an action. There is no direct relation between the two, so in ActionLog we have not a...
    Posted to ExternalBlogs (Weblog) by Anonymous on 04 Sep 2009
  • Browse NHibernate metadata to validate property Length

    One of the most basic validation rule for Entities that are stored in databases, is to be sure that String Properties are not too long for the corresponding field in database. There are a lot of validation framework over there, most of them using attributes to specify constraints on properties or fields...
    Posted to ExternalBlogs (Weblog) by Anonymous on 23 Aug 2009
  • Manage Scope or Execution Context of Repository

    In a project I’m working with Guardian, we are using NHibernate behind a Repository Pattern. Despite the question if is good or not good to shield the session behind a Repository,we encountered a classic problem. The software is structured as service, we use Castle Nhibernate Facility and Wcf Integration...
    Posted to ExternalBlogs (Weblog) by Anonymous on 07 Aug 2009
  • Manage In memory nhibernate test with sqlite and database schema

    When you work with nhibernate you usually write a lot of tests that interact with your database, mainly to test your mapping but also when you do not want to shield the session behind a IRepository. To avoid Slow Test you should use some In Memory database like Sqlite, but it can be problematic when...
    Posted to ExternalBlogs (Weblog) by Anonymous on 24 Jul 2009
  • Saving a generic Object property with nhibernate

    In a old post I explained how to save an object in XML format in database with a UserType. Since this technique worked well I decided to use it in another situation. Now I have an object that have a property of type Object, and I want to be able to save xml serialiation of [...]
    Posted to ExternalBlogs (Weblog) by Anonymous on 22 May 2009
  • Using ISQlQuery to load data with nhibernate

    I have a project that uses both nhibernate and StoredProcedures, based on a legacy project written without nhibernate. Today I need to load a lot of data from five tables. The problem is that all these tables are managed with nhibernate, but I have no relation between them. Moreover these tables have...
    Posted to ExternalBlogs (Weblog) by Anonymous on 19 May 2009
  • NHibernate/SqlServer: persist a generic ‘serializable’ object to an XML field

    Recently we had the problem of persisting some sort of extended data attached to a business object with the schema and the data of these extended information that can vary over time (usually with an additive strategy). Since we do not need to do extensive or complex analysis queries on these data (they...
    Posted to ExternalBlogs (Weblog) by Anonymous on 18 May 2009
Page 1 of 6 (56 items) 1 2 3 4 5 Next > ... Last »
Powered by Community Server (Commercial Edition), by Telligent Systems