简体   繁体   中英

Using sql data base in c# class Library

在此输入图像描述

在此输入图像描述

I have a problem, that I can't reference SQL Server database project in a class library project to manage database (insert, delete and more...).

I want to build "book store system" solution with uwp project, class library project that holds base classes and derives classes, and another class library that holds manager class with functions that manage the system.

I tried to create new SQL Server database project and succeeded to access a database that I created in SSMS. But when I tried to reference it from the class library by using Publish command it didn't work.

I didn't use actually code but I tried to use the buttons

I expected that it will open me the option to call reference

我认为你可以使用EF代码第一个应用程序或数据库第一个样式,如果你想自己管理数据库并轻松处理映射数据库表的上下文类,你可以在这里找到完整的例子

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