All Questions
Tagged with silverlight-4.0 ria
97 questions
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 ...
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 ...
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(...
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)
...
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) :
...
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 ...
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")....
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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....
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 ...
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 ...
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'; ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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,...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 [...
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 ...
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 ...
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 ...
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 ...