Questions tagged [domaincontext]
8 questions
2
votes
1 answer
Keeping DomainContext up to date on SubmitOperation failure
Background: Silverlight 4 - RIA - Entity Framework 4
Description:
I have some deletion code in which I do:
db.Items.Remove(selectedItem);
db.SubmitChanges(deleteItemOperationCompleted, null);
Here the item is removed from the domain context and…

Kornelije Petak
- 9,412
- 15
- 68
- 96
2
votes
1 answer
reject a particular deleted item from a DomainContext
I’m using Silverlight4 and Ria Service :
Imaging we have a table (called "MyTable") with 3 records ( 1 , 2 , 3 ) , I’ve just written the following codes somewhere in my application:
CurrentItem =…

Azi
- 49
- 1
- 5
1
vote
3 answers
How to do this in VB.NET?
i having problem in converting this C# code into VB.net.
The loadLecturer seem to be having problem after convert to VB.NET
VB code just afterInitializeComponent()
context.Load(context.GetLecturesQuery(), LoadLecturer, Nothing)
The C# code i wish…

Carson Lee
- 2,673
- 3
- 20
- 23
1
vote
2 answers
Bounded Context per jurisdiction with similar business process but slight variances in domain language and Entity attributes
How would you handle a domain that shares much of the same business logic, but has slight variances in both the domain language and attributes of entities. These variances change by "region".
A fictitious example is a Real Estate System for managing…

Ben Dempsey
- 360
- 1
- 6
0
votes
1 answer
How do I access the data from my domain service in my view model ? Silverlight 5 application
I am a beginner in Silverlight and I just started to get used to it, but now I have a problem. In my StudentDomainService I have this method that returns all of my students:
public IEnumerable GetStudents()
{
return…

Ioana
- 23
- 6
0
votes
1 answer
How to call submit operation twice in one process in Silverlight?
I am working with Silverlight application with MVVM Concept and Entity framework and having some trouble in inserting the values. Using SubmitChanges method to update, insert, or delete data.
All of the pending changes are submitted in one…

Kavitha
- 1,447
- 2
- 22
- 37
0
votes
1 answer
WCF RIA Changeset Submit Order. Why is it inserting child entity before parent entity?
Here's my problem : I'am using Silverlight+ WCF RIA + EntityFramework and domain datasource. I'am inserting on the client side a parent entity and then a child entity (a parent can have many children) like this :
Parent p = new Parent();
…

Ben
- 247
- 1
- 3
- 15
0
votes
1 answer
Silverlight DomainContext load with two separate DomainDataSources
I have a confusion regarding DataContext which i would like someone to confirm or comment please.
In plain English, I believe a DataContext is a container which can be filled with entities upon load.
e.g. I have two entities named Customers and…

Thr3e
- 358
- 1
- 6
- 22