Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends, I am trying to build an application by using code first reverse engineering concept.. For that i created one mvc5 application named as codefirst. In that application i added three layers such ad Bms.core,
Bms.Data
and Bms.Services


I added one class file called Customer with get,set properties under Bms.core.

I added one Interface called ICustomer with one method name like IList<customer> ShowLIst().


After that I dont know Where i implement the code for listing the data...


In Bms.Data, I added the data from db using code first reverse engineering concepts...
Posted

In Data u add like this

C#
public class RepositoryMap: EntityTypeConfiguration<RepositoryClass>
  {
      public RepositoryMap()
      {
          this.ToTable("TableNameInDB");
          this.HasKey(u => u.Id);
          this.Property(u => u.Name);
         
      }
  }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900