简体   繁体   中英

Linq-to-sql: Datacontext - missing table issue

I have issue with table "Reality" which is not found, when I type "db" and press dot it is not suggested to me and even when I type it manually it is not found.

DataClasses1DataContext db = new DataClasses1DataContext();
            var query = db.Reality

I also could not see it in Object browser

替代文字

Even when object "Reality" is alone showed in object browser. Connection to database should be fine and table is correctly displayed in Linq-to-Sql class. Any idea?

Reality is the entity. The Realities property on the DataContext is a reference to the Reality table. It's type is Table<Reality> .

I dont see any problem here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM