Search code examples
c#sql-serverwpfcentralized

Multiple Clients (WPF Application) with centralized Database server and Database (SQL server 2008)


I have developed a WPF desktop application which will be used in multiple client PC's and they will all have a centralized database to perform CRUD operations, and we have maximum 5-10 concurrent users, i have developed this application and i am pretty much done with it, recently it occurred to me that is it a good practice to use client-server centralized architecture with WPF desktop applications. i am new to WPF so i have no idea how the different requests will be handled in this scenario. i mean in ASP.net IIS created different application domain for every user session. please tell me if what i am doing is right and if not please explain why and suggest alternatives, thanks


Solution

  • You should probably look in to Windows Communication Foundation (WCF). It will allow you to create a standardized web API to develop against. WCF can either be hosted in process (a custom server you write) or by IIS.

    Adapting an existing program to use WFC may be a challenge depending on how you structured it already though. Uusually the application needs to be designed for it from the start.