-
That's fine - but in this case having a message is a requirement. Look at the IDataErrorInfo interface - it only has properties that return string values. How else is the data-binding/validation infrastructure in .NET supposed to know whether the instance in question is valid? The IDataErrorInfo interface (and, indeed, almost all of the validation
-
That's an entirely different question, and not really one I'm qualified to answer for you. But I'm not sure anyone is. I will admit that in a "straight" ASP.NET environment, you lose some of CSLA's functionality, since you're not dealing with a very interactive UI technology. However, there is still benefit - integration
-
You're basically looking at a re-write. Between the new property declarations, business rules as objects, and the switch to generics/lambdas/etc., you're not likely to save much of the current codebase. The current version of CSLA looks almost nothing like 1.1. If you're looking to move towards the most-recent codebase, you're going
-
Depending on your particular use case, you may not need to worry about cross-object validation. Since you say you have to pull the data "directly from the database", why not simply pull the prior flight's information as part of your business object? Unless there's a presumption that both will be worked on simultaneously (which makes
-
Lazy load won't help here - it would just push the problem to later. I guess for me the first question is "what does your Child_Fetch method look like?" After that would be questions about the DataPortalInvoke methods... (I guess I'm saying that some code might help us diagnose the issue. ) FWIW, I also think this is a rather large
-
Part of what you're running into is that a SmartDate is declared as a struct. Therefore, by definition it can't be NULL. More specific to your error, the SmartDate struct has several operator overloads, but none of them take an object as the second argument. Since a NULL value doesn't convert to anything other than an object type without
-
I don't know a lot about lambdas in VB.NET, but I'm guessing the issue is that the lambda expression is being defined as a function, but the expression doesn't return anything. So my best suggestion is to replace "Function(o, e)" to "Sub(o, e)" (and the corresponding "End" tag too). HTH - Scott
-
Well - presuming this code is using what you published in previous posts, my first thought is whether the "NotImplementedException" is coming from your GetProvider() method because it can't construct the type you're asking for. The code you posted throws this very exception in that event. HTH - Scott
-
I think this post may help: http://spiderinnet1.typepad.com/blog/2011/12/vbnet-root-namespace-vs-c-default-namespace.html VB.NET deals with "Root Namespace" differently than C# deals with "Default Namespace". Essentially, VB.NET takes your "Root Namespace" value and prepends it to all your namespace declarations in your
-
The "NotInheritable" shouldn't matter. Let's start with the basics: how is your IDalManager interface defined? Is it Public? - Scott