ang3lfir3

Stories kicked 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: 487

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

31 Days of Refactoring(lostechies.com)

submitted by schambersschambers(105) 2 years, 9 months ago

A post a day for 31 days on refactoring. read more...

add a comment |category: |Views: 680

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

To Inject Or Not To Inject(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years, 2 months ago

The benefits of Dependency Injection are very hard to see when only dealing with very simple examples. I tried to come up with an example that is simple enough to fit in a blog post, but is able to show the benefits of using Dependency Injection. read more...

4 comments |category: |Views: 529

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

Testing Mandated By God(devlicio.us)

submitted by theladysabinetheladysabine(10) 3 years, 3 months ago

Short and sweet... use it on any stubborn dev more senior than you who professes a Christian faith.... but won't write a line of test code to save his life. read more...

add a comment |category: |Views: 8

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

Balancing Readability and New Syntax Sugar in C# 3.0(keithelder.net)

submitted by keithelderkeithelder(450) 3 years, 7 months ago

For those that are writing in C# 3.0 and using the latest and greatest language features have you actually stepped back to look at some of the code you wrote? Is it easier or harder to read? Is it truly more understandable for someone else to maintain later on or is it just a lot of syntactic noise? Let's explore this with a few samples and see which way comes out on top. read more...

add a comment |category: |Views: 53

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