I have just started with Linq and Linq to Entity Framewok. On top of that with the .NET Ria services.
My problem is that I have 2 tables Folder and Item with a many to many relationsship using a third "connection" table FolderItem like this:
In the .NET RIA Service domain service, I want to create a method that returns all Items for ...
Hello!
I have followed numerous tutorials and walkthroughs/blogs about the capabilities that Ria Services brings to the table when using Silverlight with ASP.Net. Essentially I am looking for a live working example of the authorization functionality that Ria Services can apparently take hold of from ASP.Net. (Even better if it works wit...
My EF model was generated from my SQL Server database. I then generated a DomainService for RIAServices against the EF model. One of the entities is called "EntryCategories". The DomainService created this method:
public IQueryable<EntryCategories> GetEntryCategoriesSet()
{
return this.Context.EntryCategoriesSet;
}
Since my user i...
I'm using .NET RIA Services July Preview to communicate between my Silverlight client and my server. On my server I have an ASP.NET project hosting the Silverlight application. In the ASP.NET application I have a Linq-to-Sql DataModel with a table called Hour. I have extended the Hour entity with 3 properties by creating Hour.shared.cs:
...
Only at runtime do I know what to display in my Silverlight Grid control. The control will pull from a RIA Services DomainServices source. In the middle tier, I have to transform an EF database source into a shape consumable by the Grid but also made up of types that RIA Services support. Only at that point do I know how many columns and...
Hi there.
I am doing small Silverlight app which will allow users to Create orders. I have created Linq 2 SQL dbml and dragged there my database tables, "Orders" and "OrderLines" , there is an association between them. Order.ID ~ OrderLine.OrderID, so then i created DomainService for my tables, where i enabled client access, it generated...
Hi,
I'm working on a line-of-business silverlight application and I need a piece of advice concerning managing RIA services context lifetime.
Application - afer a few simplifications - is build of one big tab control. At the beginning there are 2 tabs: customer list and invoice list. These are plain datagrids with filtering/sorting and ...
I am trying to add a WCF RIA service to an existing website.
When I load the page I get a "Load Operation failed for query"
I fire up fiddler2 and get
The resource cannot be found.
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i...
Here is my layout:
<StackPanel>
<!-- Defining my DDS here wont allow my ComboBox inside the DataTemplate bind to the loaded items -->
<DomainDataSource x:Name="ddsValues" Query="MyQuery" DomainContext="{Binding DC}" />
<DataForm>
<DataForm.EditTemplate>
<DataTemplate>
<StackPanel>
...
I am just trying to learn .Net RIA Service, so i am creating one hello world example. Now in domainserviceclass i am using below code
[ServiceOperation]
public string SayHello()
{
return "Hello RIA World!";
}
It is giving me error for reference, i have tried to search on the net but i am unable to identify that which namespace...
I've installed the Silverlight 4 beta toolkit and created a new silverlight business application. Without making anychanges at all, when I try to look at the Mainpage.xaml in designer view I get the following error in the designer window:
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocatio...
I am looking to download The July RIA Services Preview version 1.0.0.11. I went to microsofts website but the only one they have is 1.0.0.14. Does anybody know of a website that has the old version?
...
I have two tables in a database and using entity framework and ria services to display data in a simple datagrid. Here is the database/EF structure
Cars Make
----- ----
CarId MakeId
Car Make
MakeId
In my Silverlight datagrid I want to show the following two columns, for example
Car Make
--- -----
Escort ...
Hi
I want to pass a custom class as parameter to the query method which returns me a collection of entities. I need something like this
[Query]
public IEnumerable Search(SearchParams params)
{
//do something here
}
public class SearchParams
{
public string FilterParam1 {get; set;}
public string FilterParam2 {get; set;}
public...
Hi
I am using WCF RIA Services VS2008/.NET 3.5 and trying to do exception handling. I have overridden OnError method of DomainService and doing my exception handling in that method. I am trying to throw Business Rule Exceptions or Database Exceptions to client in some form so that client recognizes them and handles them differently.
Th...
To facilitate control reuse we created a solution with three separate projects: a control library, Silverlight client, and ASP.NET backend. The control library has no reference to the RIA Services-generated data model classes so when it needs to interact with it, we use reflection.
This has worked fine so far but I've hit a bump. I ha...
I have a custom Membership provider that implaments only the bool ValidateUser(string username, string password) method on System.Web.Security.MembershipProvider
This method uses a LINQ to SQL class to check the username and password as such:
MyDataContext ctx = new MyDataContext();
bool valid = ctx.Users.Where(u => u.userId == userna...
Warning - new to Silverlight / RIA Services / etc.
I have a business requirement to show a DataForm with a single record. In nearly all the examples on the net the dataform is tied to a datagrid on the selecteditem property.
In my case, the form has no grid to tie to.
I know that I'm retrieving data with my ViewModel, but I need a ...
Got confused with microsoft website descriptions. or May be the google search results just confused me. My company wants to use silverlight for a line of business application but doesnt want to go with .NET 4.0.
Can we develop SL3 applications with WCF RIA services 1.0 using .NET 3.5 with VS2008?
Can we develop SL3 applications with W...
Realized that VS2010 Beta2 has separate WCF RIA installation package which only works with .NET framework 4.0. Searching the google did not give me any pointer as of now. Is there anyway to get WCF RIA in VS2010 working with .NET 3.5 as the targeted framework? I am even fine with VS2010 not able to work with .NET 4.0 on that machine if r...