اشتراک‌ها
14.Visual Studio 2017 15.9 منتشر شد

These are the issues addressed in 15.9.14:

Security Advisory Notices

14.Visual Studio 2017 15.9 منتشر شد
اشتراک‌ها
Entity Framework Core 3.1.0-preview2 بر اساس NET Standard 2.0. کامپایل شده‌است

Entity Framework Core 3.0 بر اساس NET Standard 2.1. کامپایل شده‌است که سبب می‌شود پروژه‌های NET Core 2x. نتوانند از آن استفاده کنند؛ چون NET Core 2x. پیاده سازی NET Standard 2.0. است. اکنون این مشکل/محدودیت برطرف شده‌است.

Entity Framework Core 3.1.0-preview2 بر اساس NET Standard 2.0. کامپایل شده‌است
اشتراک‌ها
دات نت پایه، سی شارپ 8.0 و Nullable Reference Types

Here are some of the reasons why nullable reference types are less than ideal:

  • Invoking a member on a null value will issue a System.NullReferenceException exception, and every invocation that results in a System.NullReferenceException in production code is a bug. Unfortunately, however, with nullable reference types we “fall in” to doing the wrong thing rather than the right thing. The “fall in” action is to invoke a reference type without checking for null.
  • There’s an inconsistency between reference types and value types (following the introduction of Nullable<T>) in that value types are nullable when decorated with  “?” (for example, int? number); otherwise, they default to non-nullable. In contrast, reference types are nullable by default. This is “normal” to those of us who have been programming in C# for a long time, but if we could do it all over, we’d want the default for reference types to be non-nullable and the addition of a “?” to be an explicit way to allow nulls.
  • It’s not possible to run static flow analysis to check all paths regarding whether a value will be null before dereferencing it, or not. Consider, for example, if there were unmanaged code invocations, multi-threading, or null assignment/­replacement based on runtime conditions. (Not to mention whether analysis would include checking of all library APIs that are invoked.)
  • There’s no reasonable syntax to indicate that a reference type value of null is invalid for a particular declaration.
  • There’s no way to decorate parameters to not allow null. 
دات نت پایه، سی شارپ 8.0 و Nullable Reference Types
اشتراک‌ها
استفاده از asp.net core web api، Razor page و mvc در یک پروژه .net core

اگر شما قبلا با asp.net core 2.0 به بالا کار کرده باشید هنگام ایجاد پروژه می‌دانید که از سه روش برای ایجاد پروژه وبی .net core می‌توان استفاده نمود. امکان استفاده جدا و با هم این روش‌ها وجود دارد که در این مقاله توضیحات کامل آن داده شده است.

استفاده از asp.net core web api، Razor page و mvc در یک پروژه .net core