Skip to content

Instantly share code, notes, and snippets.

View jahav's full-sized avatar

Jan Havlíček jahav

View GitHub Profile
// Entity Framework reference type
public class Class1
{
// Not mapped by EF
public ComplexType ComplexProperty { get; set; }
// Mapped by EF convention
private string ComplexProperty_Prop1
{
@RobinHerbots
RobinHerbots / Global.asax
Last active December 14, 2015 08:09
MVC DataAnnotations - Validate submodel in model with separate result in ModelState
public class MvcApplication : HttpApplication
{
protected void Application_Start()
{
ModelValidatorProviders.Providers.Add(new RecursiveModelValidatorProvider());
....