c# - Asp.Net 5 missing Linq to Sql class -


how can add linq sql file in microsoft asp.net 5 mvc 6. see screenshot below. there no way can find linq sql file. there no c# tab @ side??

enter image description here

when open project on asp.net 4 mvc 5 there c# tab, linq sql file.

duplicate here, i've tried add more step step instructions , others.

right click on src , add > new project. select class libarary. take note of .net framework (i'm using 4.6 here), have match main project.

add new project

the class library should appear in solution.

solution explorer

right click on class library (or sub folder want linq sql classes), , add > new item. in data tab (on left), should have item linq sql classes

add linq sql classes

configure linq sql.

linq sql

in main asp.net-5 web application, make sure project.json setup it's using same .net framework class library (check first step). i'm using 4.6 here.

"frameworks": {     "dnx46": {     } }, 

still in main asp.net-5 solution, right click on references > add reference.

add reference

add class library reference.

reference

i hope helps.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -