摘要:
The problem is likely that there's a newer version of the Visual C++ Redistributable than SQL Server is trying to install, e.g., from Visual Studio 2017. So another way to address this, if you don't need the latest C++ redistributable, is to go to Add or Remove Programs and uninstall all references to Visual C++ 2017 Redistributable. After this, the SQL Server installation should proceed without errors. 阅读全文
摘要:
Some specific needs of SQL developers like connecting to [SQL Server](https://www.microsoft.com/en/server-cloud/products/sql-server/) from OSX and even using Windows authentication can be covered by DataGrip. Since releasing DataGrip, we’ve received lots of comments about connecting to SQL Server. It appears it’s not straightforward as with other databases, requiring a couple of extra steps beforehand. Here is a small guide describing the main problems you may face and how to solve them. 阅读全文
摘要:
未找到与命令“dotnet ef”匹配的可执行文件 Specific to VS2017 15.3 or greater and ASP.NET CORE 2.0 or later... Install nuget for db provider via command line or nuget 阅读全文
摘要:
I have set the .ASPXAUTH cookie to be https only but I am not sure how to effectively do the same with the ASP.NET_SessionId.
The entire site uses HTTPS so there is no need for the cookie to work with both http and https 阅读全文
摘要:
Here's a workaround I found that works for all cases (including suspended dispatchers). It's not my code and I'm still working to fully understand it, but it does work. 阅读全文
摘要:
I understand that IValidatableObject is used to validate an object in a way that let's one compare properties against each other.
I'd still like to have attributes to validate individual properties, but I want to ignore failures on some properties in certain cases. 阅读全文
摘要:
Several people have asked me about using data annotations for validation outside of a UI framework, like ASP.NET MVC or Silverlight. The System.ComponentModel.DataAnnotations assembly contains everything you need to execute validation logic in the annotations. Specifically, there is a static Validator class to execute the validation rules. For example, let's say you have the following class in a console mode application 阅读全文