Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

Insert Multiple records RIA services

I have a service class to hold the calls to the RIA service. I have the following method to save multiple records, on the first step I should get the famous MaxId from the table and increment it in ...
Waleed's user avatar
  • 49
0 votes
0 answers
182 views

Server side or client side data manipulation

I'm working on a silverlight business application at work and I'm wondering what should I be doing in the following scenario : There's a xaml page which is the main point of working in the ...
Jack's user avatar
  • 3
0 votes
2 answers
83 views

Filter child entity LINQ methods

Consider the following query : IQueryable<Employee> ret = this.ObjectContext.Employees .Include("EmployeeInformation") .Include("LatestInformation") .Where(...
Alex's user avatar
  • 41
0 votes
1 answer
64 views

.NET Reflector MSIL

Looking at the AuthorizedChangeSet Method which reflector shows as protected virtual bool AuthorizeChangeSet() { foreach (ChangeSetEntry entry in this.ChangeSet.ChangeSetEntries) ...
jfin3204's user avatar
  • 709
1 vote
1 answer
270 views

Silverlight WebContext is shared between mutipale sessions

I have a silverlight Ria application . I use the WebContext to make the authentication staff. I have these line in the App.cs constructor (it already come with the silverlight business teplate) : ...
Wasim's user avatar
  • 1,935
1 vote
0 answers
152 views

Auto Generate Viewmodel

In my current project, we are using Silverlight 4, RIA services, Linq-to-SQL,MVVMlight from GalaSoft. I aware of creating .dbml file , domainservices.cs and doaminservice.metadata.cs files.But I am ...
Karthik's user avatar
  • 115
1 vote
1 answer
674 views

Invoke operation in wcf ria services not able to include foriegn key tables

Hi. I m using a Invoke Operation which return a class "Product" public Product GetProductById(int Id) { Product Record = this.ObjectContext.Product.Include("Order_Detail")....
Smith.Patel's user avatar
1 vote
0 answers
53 views

RIA Services Maintaining Inheritance Hierarchy

I'm using Silverlight 4, Visual Studio 2010. I have a RIA enabled class library with the following hierarchy: Entity > SEntity > IncomeEntity > SellableItem The first 3 are abstract. The client ...
Adam Schentag's user avatar
0 votes
1 answer
184 views

Silverlight Datagrid Refresh current page

I have datagrid which is bound to a list of objects from entity framework and is paged using a datapager. My question is- how do I refresh only the current "page" that it is on? For example, if I am ...
user1200083's user avatar
2 votes
2 answers
369 views

Silverlight 4 + RIA Service Loads

Is it an acceptable practice to use the same Load Operation to load multiple entities and then binding it to a single event handler asychronously? I'm doing this because I am using a busy indicator ...
stevenjmyu's user avatar
2 votes
2 answers
1k views

Silverlight 4 with RIA + EntityFramework + MVVM: Childwindow DomainContext Load does not refresh

I have a silverlight 4 application which uses RIA with EF to query multiple tables in a single DomainContext. BUGroup, BUGroupBuilding and vwBusinessUnit. The UI basically loads the BUGroup entity ...
stevenjmyu's user avatar
1 vote
1 answer
299 views

SQL Query on Parent Include Child on EF

I am working on Silverlight with C# using RIA Services - MVVM pattern. When I try to get records from Orders and OrdersDetails I get this error below: 'Notes' is not a member of 'Transient....
user1423138's user avatar
0 votes
2 answers
665 views

Silverlight 4 with RIA - Binding joined table field to grid

I have 2 tables that has a 1-1 relationship I am attempting to use the .Include() for LINQ to try to pass a child table entity to a property so that I can bind a child table field to a grid, along ...
stevenjmyu's user avatar
0 votes
1 answer
292 views

button IsEnabled binding after asynchronous invoke call to server got completed

I tried to use InvokeOperation to get a boolean value from the DomainContext in my ViewModel. As calls to the server are asynchronous, including invokes. I need to wait for the invoke to complete (i....
ravella's user avatar
  • 116
0 votes
1 answer
199 views

In Microsoft's Toolkit DataForm, Is there any feature Prompting the User to Save When Leaving a Page

In Microsoft's Toolkit DataForm User is trying to add a new item in Toolkit Dataform by clicking Add icon. In the middle if he selects any other menu tab, then he is going to lose all the entered ...
ravella's user avatar
  • 116
2 votes
1 answer
300 views

How do you set the Customvalidation in Metadata file, If the Metadata is in different Model project

My silverlight solution has 3 project files Silverlight part(Client) Web part(Server) Entity model(I maintained the edmx along with Metadata in a seperate project) Metadata file is a partial class ...
ravella's user avatar
  • 116
0 votes
1 answer
404 views

What is my WCF RIA service uri?

I'm very new to Silverlight and WCF RIA services so, excuse me for my misunderstandings. I have a telerik map component in my SL client with uses tiles url from a map server. I wanted to implement my ...
Arash's user avatar
  • 156
0 votes
1 answer
789 views

Consuming Entity Framework entities in a client application that are exposed using a WCF services

I have a DAL where I have Entity Framework to expose entities. These entities are used in a WCF Service project and exposed to the client. I consume these entities in the Silverlight web project via ...
user695663's user avatar
  • 12.3k
0 votes
2 answers
278 views

What is the Best Practices for Optimal Performance in Silverlight and MVVM

I have many Normalized tables - might be more than 50... I was wondering what is the best approach for defining ViewModels - individual ViewModel for each form or making Common ViewModel for multiple ...
Tejas Patel's user avatar
  • 1,417
0 votes
2 answers
740 views

Join two tables and filter result using EF 4 and RIA services

Public Function LoadSiteInfo(ByVal sId As Integer) As IQueryable(Of Site) Return Me.ObjectContext.Sites.Include("SiteData").Where((Function(f) f.SiteID = sId) AndAlso Function(x) x.SiteData....
Mcad001's user avatar
  • 299
0 votes
2 answers
3k views

Custom authentication domain service - Silverlight and RIA

I'm trying to write custom authentication domain service. I think I understood all code which was written on this blog. However I don't know how to specify which domain service application should use....
John's user avatar
  • 177
2 votes
1 answer
937 views

Configure DomainContext Client Timeout

In a Silverlight 4 app, I would like to increase the timeout for a specific RIA service load operation (not for all loads, just in a specific case). At Configuring the timeout for a WCF RIA Services ...
Adam Jones's user avatar
2 votes
2 answers
1k views

Silverlight 4 application freezes without throwing any exception

I'm developing a Silverlight 4 RIA application. There is a DataGrid storing data and two buttons: add a new item and remove an item. After creating a new item for the second time the application ...
mike's user avatar
  • 550
0 votes
1 answer
277 views

RIA share.cs class is generated for client but there are ambiguity problems

I have this class in RIA service ArtifactToExport. It gets generated on the client but I get the following errors. Error 2 Missing partial modifier on declaration of type ArifactToExport'; ...
user1060500's user avatar
  • 1,535
2 votes
1 answer
293 views

WCF RIA services - Error when using Named Update

I built a very simple Silverlight RIA solution, with EF4 in the server side. I added a Named Update method to the DomainService, but I can't use it. The problem is with ChangeSet.GetOriginal(). It ...
Yaron Levi's user avatar
  • 13.1k
1 vote
0 answers
702 views

Making multiple Async calls in a loop

I am loading (via drag and drop) multiple documents in a SilverLight 4 RIA application. The AddNewXDocument asyn call (in the code below) works great when i have just one record in the queue- i.e. ...
user938455's user avatar
0 votes
1 answer
969 views

RIA DomainService IQueryable - Select

Following a couple different tutorials, I've been trying to build a "Silverlight Business Application" against a database I've created. I've found I have two problems. The one I'm asking about here is ...
WernerCD's user avatar
  • 2,147
0 votes
1 answer
799 views

Wait for DomainContext.Load<t> from an entityquery with joins to complete (returning new type via 'select new')

My app consolidates data from other DBs for reporting purposes. We can't link the databases, so all the data processing has to be done in code - this is fine as we want to allow manual validation ...
MJM's user avatar
  • 407
0 votes
1 answer
682 views

WCF RIA Services sample, HR application 4004 Exception

I'm absolutely beginner to develop silverlight with RIA i found the WCF RIA Services sample from silverlight.net by following the tutorial i get an error while i trying to add new employee it will ...
1myb's user avatar
  • 3,596
0 votes
1 answer
110 views

Client side code is not generated for XElement properties

My domain service has invoke operation method and returns a custom type say 'User'. This class has many properties such as String, Integer, Boolean, XElement. When I rebuild the solution to ...
Hemant Kumar's user avatar
  • 4,611
0 votes
1 answer
153 views

Loading Static Data from Database in an RIA Application

As part of a WCF RIA application I'm creating, I'd like to cache a bunch of static supporting data locally (lists of water systems, countries, provinces; that sort of thing.) I've created a simple ...
ParoXoN's user avatar
  • 582
0 votes
2 answers
256 views

How to auto-load details (with conditions) associated with an entity using Ria Services?

I'm developing a project using Silverlight 4 and Entity Framework 4 and I'm trying to auto-load the details (with conditions) associated with an entity when the client loads the EntityQuery. So far, ...
Jacques Bourque's user avatar
0 votes
1 answer
193 views

Ria services how to query with Nolock - Read uncommited functionality

Is there a way to implement a nolock - read uncommited functionality in specific queries in RIA Services (silverlight 4)? In Linq To Sql i can achieve the same result by setting the isolation level ...
Nikos Tsokos's user avatar
  • 3,336
0 votes
1 answer
134 views

RefreshEventName for filtering on ria services for visual studio 2010

In ria services for silverlight 3 there was a functionality through RefreshEventName in order to control when a filter should be applied to the domain service query. (usually set to TextChanged) In ...
Nikos Tsokos's user avatar
  • 3,336
1 vote
1 answer
370 views

Host ASP.NET 4 Entity FrameWork 4.0 SilverLight RIA services web under SharePoint 2010 Web Application

I would need to host a Silverlight 4 RIA Services solution in a virtual application that is directly under SharePoint Web Application in IIS. I can create the Web Application in IIS, and set its ...
Gomiunik's user avatar
  • 480
0 votes
1 answer
308 views

Custom RIA Domain Service not based on an ADO.NET entity

All of my data can be accessed only through a COM object created like so: Interaction.CreateObject("MyObject.Application","RemoteServer"); I have a bunch of APIs that I can use to query this object. ...
nosirrahcd's user avatar
  • 1,467
0 votes
1 answer
397 views

RIA EF4 complex many to many filter

first of all sorry for my bad english. I have a DB structure similar to that: Using RIA Services with EF4.1 what would be the best way to select only the cars that has some Characteristics? On the ...
Leo's user avatar
  • 7,449
0 votes
1 answer
395 views

Load a big silverlight treeview (question for silverlight masters!)

I have a table with 6400 rows. This is a parent-children table, it has a foreign key to it self (a self-association reference in EF). For this project, all tree must be loaded (load data when node is ...
dani herrera's user avatar
  • 51.5k
0 votes
1 answer
1k views

How do I Update Entity with DomainContext Submit Change?

In my project first i was trying to add data to First Table , after that add new data to Second Table , after Second Table data added i was trying to update First Table . I am beginner for Silverlight,...
Zayar's user avatar
  • 85
0 votes
1 answer
2k views

Integrate Silverlight4 application with asp.net application

I made one application in silverlight4 and used EDM and WCF-RIA for database access. Now I want to integrate this application to asp.net project and when I integrate it into the ASP.net project it is ...
Pappu's user avatar
  • 93
0 votes
2 answers
97 views

Ria data corruption from server to client

I have a Linq query on the server side of a Silverlight 4 Ria project that returns a number of distinct items based on a time period(Month). The problem I am getting is when the client callback fires ...
Phil Murray's user avatar
  • 6,554
0 votes
1 answer
572 views

How do I convert multiple WCF RIA Entity types to a single type for use in a ViewModel

Apologies if there's too much/not enough detail or some of it is irelevant, it's my first post on this board: Background I am currently developing a Silverlight 4 and WCF RIA (SP1) based application ...
Oli's user avatar
  • 13
2 votes
1 answer
537 views

Using RIA's AuthenticationService with Windows Authentication

I have a Silverlight 4 application that uses RIA services and Windows Authentication. I am trying to make it so that if authentication fails the user gets redirected to a login page. I cannot get ...
Duffp's user avatar
  • 5,958
0 votes
1 answer
1k views

Silverlight localized custom validation using DataAnnotations with RIA Services

I've implemented localized validation, client-side, using the DataAnnotations attributes successfully. Now, I want to implement custom validation running server-side using the ...
Jacques Bourque's user avatar
0 votes
1 answer
567 views

Why am I getting a build error about "Type 'String' is not a valid entity type" building this Silverlight web project?

Trying to build a Silverlight 4 application + website on a brand new machine and got the following error message for the website: Error Type 'String' is not a valid entity type. Entity types cannot ...
Jedidja's user avatar
  • 16.9k
0 votes
1 answer
287 views

RIA service default required attribute

I have an EF4 model with table's columns doesn't allow null. At the SL client application I always receieve the "columnName is required" because I have the binding in xaml with [...
Waleed's user avatar
  • 49
2 votes
2 answers
956 views

ria domain service is setting a client-side property on callback

I'm using RIA domain services, with entity framework 4 and silverlight 4. When I save changes, when the service call returns, some domain service functions are called wich sets a value to "" that ...
Shaboboo's user avatar
  • 1,569
2 votes
1 answer
861 views

WCF Domain Service (Silverlight RIA) and SharePoint Foundation 2010 BCS Integration

Would it be possible to use the Domain Service generated in a Silverlight 4 RIA and connect to it via an External Content Type in SharePoint 2010's BCS? I know that you do not get a WSDL file from ...
Robert Kaucher's user avatar
1 vote
1 answer
412 views

How to initialize Profile properties in Silverlight 4 using WCF RIA

I'm using Silverlight 4, C#, WCF RIA services and SQL Server 2008. I've got a table that stores details for users e.g. First name, Last name etc. I have defined a profile in my ...
Jacques's user avatar
  • 11
0 votes
2 answers
622 views

Need help converting a Linq query (Silverlight RIA Entity - Oracle DB)

I have no problem with SQL, but I'm finding Linq a little confusing. C#, .NET4, Silverlight, RIA services, Oracle DB (v?), VS2010 running Devart dotConnect 6.10.121. I have a RIA Entity public ...
Sir Real's user avatar