Wednesday, January 30, 2019

Web app controller actions to class library?

I have a web application that has some controller actions that run each run a process after clicking some buttons. This involves making database calls and updates using entity framework which was done using code first. All the code for everything in this web app is maintained in one project. I was asked to extract the code in these actions and turn them into methods in the class library so that we can run the processes from other applications.

What would be the best way to accomplish this?

Would I have set up the class library into code that uses database first entity framework?

Or do I make another library that has all the database access code that uses code first that’ll be referenced by the class library and the web app? I’ve never made a class library so this is all new to me so I’m not sure what my options are.

Web app controller actions to class library? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team