Advanced Forum Search Results
-
OK I figured it out. Had to add something add
Normal
0
xmlns:custom1="clr-namespace:DerivedControlTest"
to the XAML for DerivedControl and specify the base class in the XAML as custom1.BaseControl rather than simply BaseControl.
Also, BaseControl should not call InitializeComponent in its constructor or ...
-
I'm using Silverlight 3 and VS 2008.
I'd like to create a user control called BaseControl derived from UserControl. I'd also like to create another control (and probably others) that derives from BaseControl (DerivedControl). Project / namespace is DerivedControlTest
<UserControl ...
-
Is there a summary somewhere that contrasts/compares the features of EF 4.0 and .NET RIA? I understand that .NET RIA will make use of EF 4.0. EF 4.0 looks like it has some great capabilities. I'm trying to determine the reasons or scenarios where one might choose to use .NET RIA+EF 4.0 instead of EF 4.0 only.
Thank you.
-
I'd like to add the LoginWindow (that is automatically added to a project if one selects the Silverlight Business Applicaiton template) to an existing Silverlight project (that wasn't created using the Bus. App. template). Is this possible?
Thank you.
-
The only workaround I found for this was to create a "parallel" edmx and connection string for use ONLY by the .NET RIA stuff, seperate from the edmx and connection string used by the application's pre-existing WCF-Entity Framework based persistence mechanism.
When I tried to use the pre-existing edmx to generate the RIA ...
-
Thanks. So if "lazy materialization" of a related entity is, in fact, needed, the correct approach is to request the load of the related entity via Context.Load?
-
I'm looking for a way to explicitly request the load of an entity's relationship. Say entity A is retrieved via context.Load but a related entity, B was not retrieved when A was retrieved. I can do it by making a Context.Load request using B's query method (using A's "foreign key") but I was hoping there was ...
-
I've been battling a nasty bug for quite a while that occurs when I
try to update and entity via AttachAsModified. An
InvalidOperationException is being thrown in method System.Data.EntityKey.ValidateEntityKey(EntitySet
entitySet, Boolean isArgumentException, String argumentName).
Exception message is
"The type of the ...
-
I'm attempting to convert a Silverlight 2 / Entity Framwork based application to SL3 and .NET RIA (July CTP).
When trying to update an existing entity, I'm getting a System.InvalidOperationException during AttachAsModified. Message is
"InvalidOperationException: type of the key field 'UserId' is expected to be ...
-
Won't work. Button events unavailable for user controls starting w/ 2.0