Creating a sample application I am going to create to projects in a solution. BusinessTyre and WCF restful/web api DTO (data transfer object) 1. BusinessTyre is going to have below folders, DataBaseLayer for edmx UnitOfWork for unit of work and generic repository Service 2. WCF restful for proving the service to any presentation project. WCF restful project. 3. DTO will have the models that are user for data transfer.(not DB models. common to service and business project) let we start coding... create DB and tables CREATE TABLE [dbo].[LoginUser]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Name] [varchar](30) NULL, [Password] [varchar](30) NULL, [Status] [char](1) NULL DEFAULT ('A'), PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] ------------------------------ CREATE TABLE [dbo].[LogRegiste...