ang3lfir3

Stories submitted by ang3lfir3

Subclass and JoinedSubclass mapping in Fluent nHibernate 1.0 RC(ang3lfir3.wordpress.com)

submitted by ang3lfir3ang3lfir3(660) 2 years, 9 months ago

With the release of Fluent nHibernate 1.0 RC (download here) there are some great changes to the mapping structure of Subclass and JoinedSubclass. This excerpt from the 1.0 RC release notes gives a highlight of what those changes are and what is expected of us: Separated subclass mapping - Subclasses can (and should be) defined separately from their parent mapping. Use SubclassMap<T> the same way as you would ClassMap<T>; if the top-most mapping (ClassMap) contains a DiscriminateSubclassesOnColumn call, the subclasses will be mapped as table-per-class-hierarchy, otherwise (by default) they'll be mapped as table-per-subclass. read more...

add a comment |category: |Views: 161

tags: another

Table Per Subclass Inheritance Mapping with Fluent nHibernate(ang3lfir3.wordpress.com)

submitted by ang3lfir3ang3lfir3(660) 2 years, 9 months ago

This is the third in a short series of posts I am working on. While reading through NHibernate in Action I thought to my self that I should create these same examples of Inheritance mapping using Fluent nHibernate to show how simple these mappings can be. read more...

add a comment |category: |Views: 270

tags: another

Table Per Class Hierarchy Inheritance Mapping with Fluent nHibernate(ang3lfir3.wordpress.com)

submitted by ang3lfir3ang3lfir3(660) 2 years, 9 months ago

This is the second in a short series of posts I am working on. While reading through NHibernate in Action I thought to my self that I should create these same examples of Inheritance mapping using Fluent nHibernate to show how simple these mappings can be. The three types of Inheritance mappings that are mentioned on page 92 of NHibernate in Action are :Model * Table Per Concrete Class * Table Per Class Hierarchy * Table Per Subclass I will be using the example from NHibernate in Action to illustrate the mappings. This post covers the Table Per Class Hierarchy example. read more...

add a comment |category: |Views: 488

tags: another

Table Per Class Inheritance Mapping with Fluent nHibernate(ang3lfir3.wordpress.com)

submitted by ang3lfir3ang3lfir3(660) 2 years, 9 months ago

This is the first in a short series of posts I am working on. While reading through NHibernate in Action I thought to my self that I should create these same examples of Inheritance mapping using Fluent nHibernate to show how simple these mappings can be. read more...

add a comment |category: |Views: 241

tags: another

NHibernate – query only properties(ayende.com)

submitted by ang3lfir3ang3lfir3(660) 2 years, 11 months ago

With most applications, there is some difference between the domain model and the data model. Probably the most common scenario that I run into can be expressed in the usually Blog & Posts example. In our domain model, we don’t want to have a Blog.Posts collection, we want to only have a Post.Blog. read more...

add a comment |category: |Views: 40

tags: another

Fluent NHibernate new style mappings - powerful semantics(ang3lfir3.wordpress.com)

submitted by ang3lfir3ang3lfir3(660) 3 years, 2 months ago

So today I updated to the latest build of Fluent NHibernate. As any of you who might have done the same have discovered there are some breaking changes. I wasn’t sure I liked the new class based conventions at first, especially since it wasn’t clear at first how to tackle altering my mappings. Then it dawned on me how powerful the conventions would end up being while also promoting DRY. read more...

1 comment |category: |Views: 286

tags: another

The Worst Possible Way to use a Stored Procedure (codebetter.com)

submitted by ang3lfir3ang3lfir3(660) 3 years, 3 months ago

Okay, if your business logic can be expressed easiest through a declarative SQL WHERE clause, a SPROC can be a cool way to go. Set-based logic is almost always simpler to do with SQL than mucking through with procedural C#, but that's a different rant for another day, and I'm definitely talking about procedural code within sproc's here...... read more...

add a comment |category: |Views: 30

tags: another

workaround for wcf netmsmqbinding bug(keithelder.net)

submitted by ang3lfir3ang3lfir3(660) 3 years, 6 months ago

There is an extremely nasty bug in WCF (Windows Communication Foundation) that I have discovered as of late. I know it is a bug because after several weeks with an open support call into Microsoft it was confirmed as a bug. It was so perplexing because it was hard to replicate. It even took the .Net Framework developers a week or more to track it down. read more...

add a comment |category: |Views: 21

tags: another

Handling Unknown Controller Actions In ASPNET MVC(jason.whitehorn.ws)

submitted by ang3lfir3ang3lfir3(660) 3 years, 7 months ago

Using the HandleUnknownAction method for a better user experience and potentially lead the user to what they were really after. read more...

add a comment |category: |Views: 56

tags: another

Entities and Repositories Discussion(rosscode.com)

submitted by ang3lfir3ang3lfir3(660) 3 years, 8 months ago

Earlier today, there was a great discussion in an IRC channel about entities and whether they should have behaviors or not, and that eventually moved onto Repositories. It's a good discussion and after it was over, several of us felt it would be a good reference for later. Since I have a log of the conversation, I figured I'd repost it for future reference. Hopefully, you'll find it a good read as well. read more...

add a comment |category: |Views: 311

tags: another

Convenience Kills, or the Case Against RAD Tools(kohari.org)

submitted by ang3lfir3ang3lfir3(660) 3 years, 9 months ago

A rather heated discussion erupted last week on Twitter and IRC concerning so-called “drag-and-drop demos” — point-and-click demonstrations of “software development” that just involve dragging controls around on a graphical designer without a lot of actual coding involved. Being entirely unable to resist joining in on debates, I had to chime in and give my two cents. read more...

add a comment |category: |Views: 323

tags: another

Skinning the Cat with Fluent NHibernate(iamnotmyself.com)

submitted by ang3lfir3ang3lfir3(660) 3 years, 9 months ago

As you may have noticed, I have become interested in the concept of Object Relational Mapping and the NHibernate framework. One of the more painful/tedious aspects of using NHibernate is hand writing the xml mapping files. That is why I got excited when I heard that Jeremy Miller was open sourcing his mapping generation libraries. read more...

add a comment |category: |Views: 328

tags: another

Specification Pattern and Lambdas(ang3lfir3.wordpress.com)

submitted by ang3lfir3ang3lfir3(660) 3 years, 9 months ago

While working on my current project I decided that I had a need to use the Specification Pattern . After finding a clean implementation by Jeff Perrin I set to work creating the specifications that I needed. I quickly realized that we were going to end up having a ton of specifications and sometimes they would only apply to very special cases. Other times they would be very broad cases and they needed to be even more composable than even the fluid interface implemented in Jeff’s implementation wasn’t going to be enough. It after all still required me to create a concrete implementation for each specification, no matter how minuscule it might be. This is the part where I thought to my self that since i was really only creating implementations for a single method that I could just write a LambdaSpecification and be able to use this for all the special cases I had. read more...

add a comment |category: |Views: 334

tags: another

Episode 7: Talking Domain-Driven Design with David Laribee – Part 2(deepfriedbytes.com)

submitted by ang3lfir3ang3lfir3(660) 3 years, 10 months ago

Domain-driven design (DDD) is an approach to the design of software, based on two premises. For most software projects, the primary focus should be on the domain and domain logic (as opposed to being the particular technology used to implement the system) and complex domain designs should be based on a model. David Laribee wraps up his discussion with hosts Keith and Woody about the growing design practice and how it can be used with the .NET platform. read more...

add a comment |category: |Views: 240

tags: another