Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC 1.0 Validation with xVal
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COI'm not understanding why partial classes will not work for you. That's a pretty standard approach in C# to adding custom behavior to template generated classes. It shouldn't matter if they are generated "a lot", as it won't change your custom code. And what do you mean they will be in different assemblies? It is a restriction of partial classes they can not be in different assembles. See the documentation... http://msdn.microsoft.com/en-us/library/wa80x488%28VS.80%29.aspx
      singulars
    2. CO@jacerhea, the reason partial classes won't work for me is that the generated code is in a different assembly. Isn't it correct that partial classes are required to reside in the same assembly?
      singulars
    3. COI misunderstood. I thought you were saying they were in fact going to be in different assemblies, and I was saying that's not possible. Yes, partial classes need to be part of the same assembly. That seems like a strange requirement though, having different parts of the same class in different modules of code. Have you considered that maybe these other requirements are forcing you to make bad architecture decisions? Anyways, if you want to implement a custom IRulesProvider I would suggest download the xVal source, where the IRulesProvider code for both Castle and NHibernate can be looked at.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload