c# - How to refrence a model from a dll file in MVC5 -


i new mvc , dll , stackoverflow please patient me , ask if in question doesn't make sense.

i have mvc5 project in have been asked use dll file made basic crud functions using models within dll file, not know how reference dll file or how extract model details it. have misunderstood has been asked of me or can done?

for adding reference dll in project:

1- in solution explorer, select web project.

2- right-click name of web project in solution explorer , select add reference. add reference dialog box displayed.

3- select browse tab.

4- browse folder contains dll want reference, select dll, , click ok.

to use dll:

let want use dll inside home controller:

namespace yourproject.controllers {     public class homecontroller : controller     {          #region actions         public actionresult index()         {             try             {               nameofyourdll.classname tvar = new nameofyourdll.classname();              tvar.create();                 return view();             }             catch (exception ex)             {                throw;             }         }         #endregion }} 

Comments