Updating entity object in another window

I have one problem in using Entity Framework. My application base on silverlight and I have 2 window in it.

  1. ChooseEmployeeWindow.cs
  2. ChangeEmployeeWindow.cs

all of my windows have a instance of entityModelClass

My users in first window choose one employee and send selected employee to constructor of second window for changing properties. When I want to save change with my instance of entityModelClass , it not saved to database.

How can I solve this problem.

thanks a lot

Answers


A Silverlight application runs on a client which can't directly connect to a database. You need some sort of interface, a WCF service for example, through which a client can send changes to a server, and then write the changes to the database from there.


Need Your Help

Change background-color of elements within an iframe on hover

jquery css iframe background hover

How do I change the background-color of elements in an <iframe>? The <iframe> is in my domain. Here is the complete code (HTML, PHP and jQuery):

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.