Stories recently tagged with 'Fluent'

Fluent NHibernate with System.ComponentModel.DataAnnotations (weblogs.asp.net)

submitted by zowenszowens(988) 2 years, 7 months ago

Want to map your domain with DataAnnotations validation? Using Fluent NHibernate? Then take a look at how to create a simple convention! read more...

add a comment |category: |Views: 155

tags: another

Another C# trick: Fluents, Inheritance and Extension Methods (blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 7 months ago

Here’s a scenario which Damien and I encountered recently. We needed a way of specifying Facets for properties on Entities, i.e. things like Nullable, MaxLength, Precision etc. And we needed a class hierarchy because different types of properties have different sets of available facets. The base class of the hierarchy is called PropertyConfiguration which defines a series of Fluent methods that are shared by all sub types: read more...

add a comment |category: |Views: 26

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

Building a Progressive Fluent Interface(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 3 years, 2 months ago

Taking a look at how to build a Progressive Fluent Interface which is a DSL where the options can and will change as you progress through the syntax. This is a useful form of a fluent interface if the want to be able to skillfully guide the user down only one path at a time. read more...

add a comment |category: |Views: 339

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

Learning how to create a simple Fluent DSL via Method Chaining(dimecasts.net)

submitted by trinidadcodertrinidadcoder(265) 3 years, 3 months ago

Take a look at how to create a simple Fluent DSL which is built via Method Chaining. We will build this DSL from the ground up and talk about the various decisions which were made along the way. This is just a simple example of how you can create a internal DSL for your application with very little effort. read more...

add a comment |category: |Views: 322

tags: another

A Little More Sugar for Testing Routes in asp.net MVC(stevenharman.net)

submitted by usshermussherm(5285) 3 years, 3 months ago

Building on the Fluent Route Testing from MVC Contrib, this is another extension for testing ignored Routes. read more...

add a comment |category: |Views: 185

tags: another

Mapping a One-To-Many Relationship with Fluent-NHibernate w/ Composite(devlicio.us)

submitted by trinidadcodertrinidadcoder(265) 3 years, 3 months ago

Taking a look at how to setup the NHibernate mappings using Fluent-NHibernate when you have a One-To-Many relationship which uses composite-id's. read more...

add a comment |category: |Views: 136

tags: another

Fluent NHibernate Introduction(marekblotny.blogspot.com)

submitted by ma4ti4ma4ti4(245) 3 years, 5 months ago

Article introduces Fluent NHibernate and quick start guide. Simple web application is available to download for everyone willing to play with Fluent NHibernate. read more...

add a comment |category: |Views: 64

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

Linq Framework Design Guidelines - evolve into optimized frameworks(blog.domaindotnet.com)

submitted by dcarrdcarr(790) 3 years, 9 months ago

This is from the team that brought you ‘Framework Design Guidelines’ led by Krzysztof Cwalina, an individual we are not shy to recognize as an amazing mind. Look for this content (as shared here from their internal work) in the next of the book For example : defer execution of query operator implementations. The expected behavior of most of the Query Pattern members is that they simply construct a new object which, upon enumeration, produces the elements of the set which match the query. The evaluation time is, then, at enumeration. read more...

1 comment |category: |Views: 41

tags: another

Building A Fluent Interface for MEF(managed-world.com)

submitted by adminjewadminjew(1490) 3 years, 10 months ago

Lately I've been digging more and more into the first CTP of the Managed Extensibility Framework (MEF) coming out of Krzysztof Cwalina's team here at Microsoft. By default, a developer needs to sprinkle Export and Import attributes in their classes at the point they are needing something to be injected, or on classes that need to be exported in order to be injected into other classes. However, if you don't like this behavior, MEF provides several extension points you can use to provide a different interface into MEF. read more...

add a comment |category: |Views: 72

tags: another

A C# fluent repeater(sharpregion.com)

submitted by AdrianAisembergAdrianAisemberg(2004) 4 years, 1 month ago

A fully-featured fluent class used for repeating method calls, handle exceptions, callbacks and more... Just plug-and-play and start repeating stuff! read more...

1 comment |category: |Views: 51

tags: another

Simple typeswitch in C# 3.0, Part 2(blog.ashmind.com)

submitted by ashmindashmind(775) 4 years, 7 months ago

A fluent interface for type switching in C# 3.0. read more...

add a comment |category: |Views: 10

tags: another