visual-studio-2015

Can we Scaffold DbContext from selected tables of an existing database

纵饮孤独 提交于 2021-01-20 15:22:28
问题 As in previous versions of Entity Framework, is it possible in Entity Framework Core to reverse engineer only the selected tables of an existing database to create model classes out of them. This official ASP.NET site reverse engineers the entire database. In past, as shown in this ASP.NET tutorial, using old EF you could reverse engineer only the selected tables/Views if you chose to. 回答1: One can solve the problem by usage of dotnet ef dbcontext scaffold command with multiple -t ( --table )

SSDT Installation fails for VS 2015

北战南征 提交于 2021-01-20 12:48:06
问题 I have Microsoft Visual Studio Professional 2015 installed on my machine, i also have SQL Server 2017 installed. I am trying to install SQL Server Development Tools for BI projects on my machine,i tried installing 'SSDT for VS2015 17.4' , 'SSDT for VS2015 17.3' and also 'SSDT for VS2015 16.5' and everything failed. [5290:0FCC][2020-05-30T11:21:16]: Burn v3.6.3542.0, Windows v6.3 (Build 9600: Service Pack 0), path: C:\Users\honey\Downloads\SSDTSetup (3).exe, cmdline: '' [5290:0FCC][2020-05

Project 'Default' not found error when installing a NuGet package

不羁岁月 提交于 2021-01-18 05:02:11
问题 I copied the following project from win 8.1 to windows 7 and deleted the Migration folder. Now when I run PM> Add-Migration MyFirstMigration -context BloggingContext command in VS2015 I get the error: Project "Default" is not found . Both the machines have ASP.NET Core 1.0 and VS2015-Update 3 installed. I get the same error if I run Install-Package command for any package. Project runs fine on Win8.1 UPDATE I do not have the same issue when copying a project from Windows 7 to Windows 8.1 or

Failed to install Windows 10 SDK v10.0.10586 for Visual studio 2015 professional, Windows 7

泪湿孤枕 提交于 2021-01-07 02:35:54
问题 I uninstalled visual studio 2015 because I was trying to fix another issue I was having, and it was suggested an uninstall/install might fix it. 1) I went through programs and features, found VS2015, selected change, then uninstalled VS2015. 2) rebooted 3) I tried the install again, making sure windows SDK 10.0.10586 was selected and I received this message after the install completed:1 The log has these error messages: [2094:210C][2018-08-15T12:07:34]i000: MUX: Updating secondary installer

Failed to install Windows 10 SDK v10.0.10586 for Visual studio 2015 professional, Windows 7

 ̄綄美尐妖づ 提交于 2021-01-07 02:32:11
问题 I uninstalled visual studio 2015 because I was trying to fix another issue I was having, and it was suggested an uninstall/install might fix it. 1) I went through programs and features, found VS2015, selected change, then uninstalled VS2015. 2) rebooted 3) I tried the install again, making sure windows SDK 10.0.10586 was selected and I received this message after the install completed:1 The log has these error messages: [2094:210C][2018-08-15T12:07:34]i000: MUX: Updating secondary installer

Could not load file or assembly 'System.Memory, Version=4.0.1.' in Visual Studio 2015

独自空忆成欢 提交于 2020-12-30 06:54:11
问题 For a couple of months i had no issue about generating the model from DB by deleting it and recreating it . After a pull from git, an issue has been occurred while trying to make the same process . After the second step (connection string creation with DB) there is no further proceed at the 3rd step and no connection string with the data base is being created at the app.config file.I have tried to test the connection with the database credentials and i am getting the following . When i try to

Could not load file or assembly 'System.Memory, Version=4.0.1.' in Visual Studio 2015

↘锁芯ラ 提交于 2020-12-30 06:53:05
问题 For a couple of months i had no issue about generating the model from DB by deleting it and recreating it . After a pull from git, an issue has been occurred while trying to make the same process . After the second step (connection string creation with DB) there is no further proceed at the 3rd step and no connection string with the data base is being created at the app.config file.I have tried to test the connection with the database credentials and i am getting the following . When i try to

SA1401 Fields must be declared with private access. Use properties to expose fields

試著忘記壹切 提交于 2020-12-26 20:09:12
问题 I facing the following StyleCop violation. How can I fix this? Warning SA1401 : CSharp.Maintainability : Fields must be declared with private access. Use properties to expose fields. MonitoringGitLabProjectStatus My code is public class EmailConfig { public EmailConfig() { this.AmazonClient = new AmazonSimpleEmailServiceClient(this.amazonUserName, this.amazonPassword); } protected MailMessage mailMessage = new MailMessage(); //Fields must be declared with private access. Use properties to

SA1401 Fields must be declared with private access. Use properties to expose fields

霸气de小男生 提交于 2020-12-26 20:00:46
问题 I facing the following StyleCop violation. How can I fix this? Warning SA1401 : CSharp.Maintainability : Fields must be declared with private access. Use properties to expose fields. MonitoringGitLabProjectStatus My code is public class EmailConfig { public EmailConfig() { this.AmazonClient = new AmazonSimpleEmailServiceClient(this.amazonUserName, this.amazonPassword); } protected MailMessage mailMessage = new MailMessage(); //Fields must be declared with private access. Use properties to

SA1401 Fields must be declared with private access. Use properties to expose fields

血红的双手。 提交于 2020-12-26 19:58:24
问题 I facing the following StyleCop violation. How can I fix this? Warning SA1401 : CSharp.Maintainability : Fields must be declared with private access. Use properties to expose fields. MonitoringGitLabProjectStatus My code is public class EmailConfig { public EmailConfig() { this.AmazonClient = new AmazonSimpleEmailServiceClient(this.amazonUserName, this.amazonPassword); } protected MailMessage mailMessage = new MailMessage(); //Fields must be declared with private access. Use properties to