There a lot of different ways a Silverlight application can connect back to it’ server. Including
WCF - Windows Communication Foundation
REST (see also)
ADO.NET Data Services (or is this just REST?)
POX - Plain Old XML (E.g basic xml)
RIA services
For each of these please say what it’s for and when you would or wouldn’t use it. I...
I would like to ask whether or not is a good practice, to hold the CRUD operations for business objects, in a single domain service class. Should we provide a domain service class for each BO?
ProductDomainService.cs
CustomerDomainService.cs
...
or a single
BusinessObjectDomainService.cs
...
Hello,
When reading the overview document, there are examples of how to test GetSalariedEmployee and InsertEmployee.
When trying to code a test for UpdateEmployee i want to check that repository's Attach method is called with the two parameters, but ChangeSet is null when there are no changes, so no calls can be made to ChangeSet.GetOr...
With RIA services, I have a Contract that has a list of Orders (1 to many relationship). Given a Contract, is there an easy way to load all of its orders? Currently, I am creating a method on the service that takes a ContractKey and returns a query that selects all Orders on that ContractKey, and I pass that query to the Context.Load m...
Hello,
Background: My experience in C# / Silverlight / .Net development is about 4 weeks worth.
The official documentation for .Net RIA Services July 2009 Preview, on Page 66 Section 6.2.2.2 states how one would consume the result of a call made on a function marked as [ServiceOperation]. This examples specifically uses 'InvokeOperatio...
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...
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...
I have a database that have quite a bit relational user information that would be handy to load when the user is authenticated. I would like to use the Silverlight Business Application project template and extend the user class that exists in the AuthebticationService.cs file in that project.
I have been able to add simple properties t...
So i'm fairly new to both SubSonic and RIA Services. I've done the RIA walkthrough for the HR app and it all looks good, but I'm not quite about creating a DomainService base class for Subsonic.
The samples here describe creating a custom base class for your DAL but I wondering if there was already anything out in the wild that did thi...
Hello. I'm rewriting an LOB application whose architecture is like this:
Silverlight && Windows Mobile -> WCF
-> Entity Framework -> Database.
The mobile app was supposed to be able to do certain things as the silverlight app. What benefits would I get from using RIA Services here? Whats the advantage and disadvantage of RIA Serv...
I am looking for any examples which ideally cover several possible combinations ( SimpleRepository, ActiveRecord , POCO ) - something similar to Brad Abrams
http://blogs.msdn.com/brada/archive/2009/10/27/index-for-business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update.aspx
but ORM is SubSonic.
...
Can the .NET RIA Service automatically push data to the silverlight client without the client polling the server at all?
I want a feature similiar to wcf duplex polling.
...
I have a problem when using LINQ to set a where clause on a query in a domain service call.
If I don't set a where clause it works just fine and I get my result back in my completed event (I have only implemented the eventhandler for the completed event to demonstrate my issue here).
LoadOperation<User> load =
_Context.Load(_Context...
I use EntityCollection as datasource for combox as dropdown for a silverlight app with ria services.
If I know the item selected in the collection, say its ID=123, then I can use this ID to find out the selected in EntityCollection. How to write the general function for this purpose?
say something like:
public Entity<T> GetEntity(Enti...
I've went through the basic tutorials associated with Silverlight and Ria Services and I am now trying to branch out to a model I have used before.
I have a Silverlight project that I want to use Ria Services with. Unlike the tutorials for Ria Services that I've seen, I'm wanting to have my Domain Services to use Repository objects in ...
I am having difficulty deploying RIA services/Silverlight 3 to a staging environment.
Here is my situation:
1) I am using RIA for authentication. This works fine on both my development machine and in the staging environment.
2) I created a custom LinqToEntities RIA service to get data from the database into my application. This servi...
I had a connection working but something changed and now the data isn't showing up. It is a simple query that worked before that just returns all entities. I put in break points on the LoadOperation call and it fires and gets 0 entities. I also put a break point on the service itself, and it does not break before the LoadOperation eva...
Our application is built in VB6 and delivered in a SaaS model via Citrix.
Our subscribers must first authenticate to the Citrix Login Portal (AD) which gives them access to their applications. Each application has its own local user repository so except for where we've implemented some single sign on strategies, the user must enter a s...
I have a Sybase ASE server that I'm able to connect to with ASE iSql totally fine. The database definition in my sql.ini file looks like:
[<NAME>]
master=TCP,<servername>,<port>
to connect with iSql, I can make the following command-line call and it works:
isql -U <username> -P <password> -S <NAME>
My ultimate goal is to use SQL An...