in

DotNetMarche

.NET Framework User Group delle Marche

Browse by Tags

  • NHIbernate and "collection was not an association" when using bag and composite-element

    Look at this mapping <bag name="searchDefinition" access="field" cascade="all-delete-orphan" table="RawSearchDefinition" fetch="join"> <key column="ParentObjectId" /> <composite-element class="RawSearchDefinition"> <property...
    Posted to ExternalBlogs (Weblog) by Anonymous on 20 May 2008
  • Mapping a boolean field to char in nhibernate

    When you work with legacy database is not infrequent that boolean value are mapped to char(1) field in databse, with Y/N or 0/1 or some other chars. In the literature there are a lot of solution, you can find for example a discussion here. When you use a user type to handle this kind of [...]
    Posted to ExternalBlogs (Weblog) by Anonymous on 08 May 2008
  • NHibernate and batch update

    Today in a project I need to delete a lot of object from a table, the objects are instances of ActionLog and I want to delete all logs related to action when an action is deleted. The problem is that nhibernate does not still support batch query as hibernate for java does (as explained in hibnernate...
    Posted to ExternalBlogs (Weblog) by Anonymous on 02 Apr 2008
  • NHibernate ICriteria Count and the missing "Having"

    One of the most feared missing feature of the ICriteria API is the possibility to specify condition on projection with Having. Suppose you have this simple connection between a container and a contained object, The EntityContainer class has a property called Test, is an IList<EntityTest> and...
    Posted to ExternalBlogs (Weblog) by Anonymous on 27 Feb 2008
  • NHibernate, Lazy, Sessioni e Cache

    Appunto di viaggio: applicazione Asp.Net con AjaxToolkit ed NHibernate 1.2. Il domain model è mappato in modalità lazy per massimizzare le performance. Il lato presentation dell'applicativo fa uso intensivo di UpdatePanel che al bisogno completano l'interfaccia utente con delle chiamate in background;...
  • UI.Comfort

    Mi capita spesso di vedere ottimi software penalizzati da una interfaccia utente carente che rende di fatto macchinosa e ostica la fruizione da parte dell'utente finale. Magari la colpa è della fretta nel voler consegnare un progetto o perchè l'importante per chi sviluppa è "quello sotto...
  • rollback operazioni su db in fase di test...HELP!

    salve sono uno studente di ingegneria informatica abbastanza incapace. Sto affrontando la problematica dello sviluppo guidato da test . Ho il seguente problema: quando vado ad eseguire un test di un metodo che ad esempio effettua l'inserimento di un record in una tabella del mio database e il test...
    Posted to Programmazione Generale (Forum) by filippo on 07 Nov 2007
  • Errata corrige

    Thanks to my friend Janky for notice that I made a mistake in a previous post. In that post I speak about a “conversation” but actually I was describing a UnitOfWork, that was my fault. The exact definition of a conversation is given in “Hibernate In Action” where Gavin King states...
    Posted to ExternalBlogs (Weblog) by Anonymous on 06 Aug 2007
  • Manage conversation to a database

    When you begin to work with an ORM you encounter the concept of conversation, a conversation is the analogous of a transaction for database code, in a conversation I must be able to make a dialog to the ORM using the same context. In database there is no such concept, but I like it, and [...]
    Posted to ExternalBlogs (Weblog) by Anonymous on 04 Aug 2007
  • Writing a Custom Criteria in Nhibernate

    In the preceding post I showed you a simple class that store in database string or integer values, now I need to create a criteria to do searches in database. NHibernate Criteria API are really good and they are extendible, to create a new criteria simply create a class that inherits from AbstractCriterion...
    Posted to ExternalBlogs (Weblog) by Anonymous on 26 Jul 2007
Page 1 of 3 (29 items) 1 2 3 Next >
Powered by Community Server (Commercial Edition), by Telligent Systems