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??
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.
the class library should appear in solution.
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
configure 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 class library reference.
i hope helps.
Comments
Post a Comment