c# - error in accessing DataContext class from winforms inside folder -


i creating project win forms inside folder "presentation". i've folder dal.

when trying access datacontext winforms inside "presentation" getting error, "the type of namespace not found (are missing using directives or assembly reference)". same error given when try access datacontext dal.

// userloginform inside presentation folder using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; using dal;  namespace libraryms {     public partial class userloginform : form     {         appuser users = new appuser();          dataclassesdatacontext dbcontext = new dataclassesdatacontext();  // getting error here          // remaining code  // appuser inside dal        using system; using system.collections.generic; using system.linq; using system.data; using system.data.sqlclient; using system.text;  namespace dal {     public class appuser     {         sqlhelper helper = new sqlhelper();               dataclassesdatacontext dbcontext = new dataclassesdatacontext(); // getting error here          // remaining code 

my project structure ::

solution 'libraryms' > dal // contains classes database tables     > appuser     > address > libraryms         > dataclasses.dbml           dataclasses.designer.cs         >presentation // win forms 

how solve error? can make folder dbml too? how can access datacontext cs files inside folders?

location of datacontext class :: dataclasses.designer.cs

namespace libraryms {     using system.data.linq;     using system.data.linq.mapping;     using system.data;     using system.collections.generic;     using system.reflection;     using system.linq;     using system.linq.expressions;     using system.componentmodel;     using system;       public partial class dataclassesdatacontext : system.data.linq.datacontext     { // .... 


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -