nrstott

Stories kicked by nrstott

ASP.NET MVC Domain Driven Design Part 2(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 2 months ago

Implementation of entity equality and test cases to describe the behavior. Fluent NHibernate mapping and integration testing. Implementation of IRepository<T>. read more...

add a comment |category: |Views: 91

tags: another

ASP.NET MVC Domain Driven Design(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 2 months ago

The first in a series of posts detailing how to create ASP.NET MVC projects in a way that facilitates DDD. Fluent NHibernate, NHibernate.Burrow, and MVCContrib will be used. read more...

1 comment |category: |Views: 613

tags: another

xVal 0.8 improves client side validation in ASP.NET MVC(blog.codeville.net)

submitted by desmonddesmond(2014) 3 years, 2 months ago

xVal is an open source validation framework bridge for ASP.NET MVC. Its new release, version 0.8, became available this morning and adds the following features: Support for NHibernate.Validator, Internationalization, Custom validation logic, Fluent syntax for defining ad-hoc validation rules, Comparison validators, and more. read more...

1 comment |category: |Views: 275

tags: another

Executing Native Sql Using NHibernate Named Queries(sidesofmarch.com)

submitted by nrstottnrstott(345) 3 years, 3 months ago

Describes how to use nhibernate named queries to execute sql. read more...

add a comment |category: |Views: 143

tags: another

Register Repository Implementations Automatically with Windsor(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 3 months ago

It is common in a domain driven design project to want to register all the implementations of IRepository<> by convention. There may be interfaces that inherit from IRepository<> such as ICustomerRepository inheriting from IRepository<Customer>. This article provides a Castle Facility that takes as its configuration parameters the base type of the repository (IRepository<>) and a group of assemblies to search. It registers implementations of the IRepository interfaces both for the generic type and for the more specific type. You would therefore be able to, in our example, retrieve CustomerRepository (implementation of ICustomerRepository) by resolving IRepository<Customer> or ICustomerRepository. If you practice DDD and are using Windsor as your Inversion of Control container, this may be useful to you. If you use a different inversion of control container, the approach could be adapted to your needs. read more...

add a comment |category: |Views: 39

tags: another

The State Pattern(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 8 months ago

An introduction to the State Pattern: a behavioral design pattern that allows an object to partially change its type at runtime. The state pattern is a subset of the strategy pattern. The state pattern has a variety of uses, not least amongst them helping to encapsulate state changes of NHibernate persistent entities ssince it is usually undesirable to have a persistent entity change its type. The state pattern will also help you avoid brittle switch statements in domain logic. read more...

add a comment |category: |Views: 72

tags: another

Implementing NHibernate Interceptors(elegantcode.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

A lesson on NHibernate interceptors. read more...

add a comment |category: |Views: 56

tags: another

Domain Objects Pattern(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

Defines and describes the benefits of the use of Data Transfer Objects (DTOs). read more...

1 comment |category: |Views: 23

tags: another

ASP.NET MVC Forms With Validation Framework Open Sourced(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

The MVC Forms With Validation framework is now open sourced. A google code repository has been created. The framework received a lot of attention when posted, so check out the google code project and try it out in your own applications! read more...

add a comment |category: |Views: 28

tags: another

.NET 3.5 SP1 Get*CustomModifiers bugs(ayende.com)

submitted by PeterRitchiePeterRitchie(1505) 3 years, 9 months ago

Oren Eini describes new bugs in .NET 3.5 SP1 with ParameterInfo.GetRequiredCustomModifiers and ParameterInfo.GetOptionalCustomModifiers read more...

add a comment |category: |Views: 160

tags: another

MVC Storefront Part 18: Creating An Experience(blog.wekeroad.com)

submitted by ivanoffivanoff(75) 3 years, 9 months ago

Creating An Experience read more...

add a comment |category: |Views: 179

tags: another

Forms Validation Framework for ASP.NET MVC(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

A reusable technique and sample project detailing how to use POCO models to generate forms and perform validation upon them. The forms helper class can be used as parameters to action methods via an action filter providing seamless integration with the MVC framework. Generate, render, and validate forms based upon POCO objects quickly and easily. read more...

add a comment |category: |Views: 385

tags: another

MVC Routing For Specifying Response Type(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

This is a post I wrote about providing a response type based upon the extension used in a route for MVC routes. Example URLs: /Category/Show/1 /Category/Show.xml/1 /Category/Show.json/1 With this approach, in your controller, RouteData["responseType"] will default to html or if a different extension was added to the action, then it will reflect that extension. This allows nice URLs for services wanting to access your actions as services that provide json, xml, or whatever else you might desire to return. read more...

add a comment |category: |Views: 15

tags: another

Building Domain Specific Languages in Boo: Chapter 9 TOC(ayende.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

The table of contents for chapter 9 of Ayende's great book about Boo DSL. read more...

add a comment |category: |Views: 17

tags: another

Brackets, braces, parentheses, and other such creatures(davesquared.blogspot.com)

submitted by nrstottnrstott(345) 3 years, 9 months ago

An interesting story about a common task in text-manipulation done with TDD. The problem is stated as such: This aim of this challenge was to determine whether any given string has a legal bracket structure. Basically, make sure all the '(', '[', '{', and '<' have matching ')', ']', '}' and '>'. We also need to take nesting into account, so that "({)}" is incorrect, and "({}<{}>)" will pass. read more...

1 comment |category: |Views: 12

tags: another

Domain Specific Language using Rhino DSL and Boo(nathan.whiteboard-it.com)

submitted by nrstottnrstott(345) 3 years, 11 months ago

A C# implementation of a domain specific language for configuration of a new open source project: mite. Rhino.DSL is used to create a DSL to define migration environments. The syntax for the Boo based DSL is concise and allows the configuration to be kept DRY. There are many advantages to using DSL over XML configuration. See how quick and easy it is to build your own DSL. Sample project is included. read more...

add a comment |category: |Views: 1195

tags: another