Supplements osearchtdsearchvsearchae Effectivestudyformula ai Formula Formula rsearchm And Effective osearchm Category lsearch T Joint f Formula f Effective etsearchv Study s And uyfsearchrsearchuasearch
Delicious Twitter Facebook Digg Stumbleupon Technorati RSS
Links to this post

NHibernate and Mapping Aggregates

0 comments
A few days ago a friend emailed me the following question regarding NHibernate mappings for a solution he’s currently developing:

“I have an idea entity that has a collection of comment entities and I need to get the comment count for each idea. I made a massive mistake at the beginning by calling idea.Comments.Count (even worse, I did it in the view!), which due to the collection being lazy-loaded caused about 10 database calls so performance was sluggish even with second level cache.  I was therefore wondering how you would do it - would you use HQL and use Comments.size or would you do something differently?”
Now, I’ve been pretty busy recently, so before I had opportunity to respond properly, he sent this follow-up:

"After looking for a solution for getting a Comment count back for each Idea, I found using the Nhibernate Formula method does the job - just wanting to make sure I was on the right track in terms of performance etc.  My mapping class is as follows:"

public class IdeaMap : ClassMap<Idea>
{}
}

Read more: Ian Nelson
Posted via email from .NET Info
Delicious Twitter Facebook Digg Stumbleupon Technorati RSS
Links to this post

CodeMirror port for Web Toolkit

0 comments
I had been hunting for a good web based code editor when I came across CodeMirror at a>.
Great project and a lot of hard and smart work indeed.
I am a great fan of GWT and try to move anything and everything that comes my way to GWT
The result is gCodeMirror project at
Code and GitHub.
If you are interested in directly jumping to a demo, browse to this test URL.

Read more: Gaurav Vaish
Posted via email from .NET Info
Delicious Twitter Facebook Digg Stumbleupon Technorati RSS
Links to this post

Subversion 1.6.15 Released

0 comments
Just in time for Thanksgiving comes the next Subversion release: Subversion 1.6.15.  In addition to the usual group of bug fixes, this release includes a couple of fixes of import to administrators.  1.6.15 fixes a potential memory leak which can be caused by clients running 'svn blame -g' on large datasets.  Subversion 1.6.15 also fixes a crash in mod_dav_svn which can be caused by using SVNParentPath.  (Don't worry, if you don't know what that means, it probably doesn't affect you.)
You can, of course, find more information here:

Release announcement: dev/archive-2010-11/0475.shtml

Change log: repos/asf/subversion/tags/1.6.15/CHANGES

As always, you can get binaries for the latest Subversion releases for a variety of platforms directly from WANdisco: subversion/os/downloads

Read more: Subversion community
Posted via email from .NET Info
Delicious Twitter Facebook Digg Stumbleupon Technorati RSS
Links to this post

Silverlight basics. Validation. Part 1. DataAnnotations & ValidatesOnExceptions

0 comments
Silverlight 4 has some new ways for validate input values (some new approaches to implement validation in your application). First approach is DataAnnotation. In this case you should describe validation rules with attributes. Two other ways (both of them is came with Silverlight 4) – you should implement one of interfaces for your ViewModel: IDataErrorInfo or INotifyDataErrorInfo. I want to talk about all of these approaches, about pros and cons of using each of them. Goal of this article to get a best way to implement validation of input values in my and your applications. This part of article about DataAnnotations.

Background
I have example. I want to describe all of these approaches on simple control “change password”.




Read more: outcoldman
Posted via email from .NET Info
Delicious Twitter Facebook Digg Stumbleupon Technorati RSS
Links to this post

NHibernate Profiler Delivers!

0 comments
  • Cognitive application awareness