اشتراک‌ها
روش‌های مقابله با مشکل امنیتی Mass Assignment در ASP.NET Core
  • Use BindAttribute on the action method 
  • Use [Editable] or [BindNever] on the model 
  • Use two different models 
  • Use a base class 
  • Use ModelMetadataTypeAttribute 
  • Explicit binding via TryUpdateModelAsync<> 

This was a very quick run down of some of the options available to you to prevent mass assignment. Which approach you take is up to you, though I would definitely suggest using one of the latter 2-model approaches. There are other options too, such as doing explicit binding via TryUpdateModelAsync<> but the options I've shown represent some of the most common approaches. Whatever you do, don't just blindly bind your view models if you have properties that should not be edited by a user, or you could be in for a nasty surprise.

And whatever you do, don't bind directly to your EntityFramework models. Pretty please. 

روش‌های مقابله با مشکل امنیتی Mass Assignment در ASP.NET Core
اشتراک‌ها
کار با Enumerated Values in Entity Framework

If you decide on using an Enum with enumerated values in your Entity Framework class, here are the tools you'll need to make it work. But an enumerated value shouldn't be your first choice. 

کار با Enumerated Values in Entity Framework
اشتراک‌ها
Bootstrap v4.6.0 منتشر شد

Bootstrap v4.6.0 is here with a couple new features, several bugfixes, and some awesome documentation updates to make v4 more maintainable alongside our development of v5. 

Bootstrap v4.6.0 منتشر شد
اشتراک‌ها
ویژگی های C# 9.0

C# 9.0 is taking shape, and I’d like to share our thinking on some of the major features we’re adding to this next version of the language. 

ویژگی های C# 9.0
اشتراک‌ها
کارمندان مایکروسافت جهت شفاف سازی تصمیم گرفتند حقوق های خود را با یکدیگر به اشتراک بگذارند.

While few data points about Microsoft engineers working in India were available, the crowdsourced data revealed they are paid far less than their Washingtonian counterparts. The typical Indian coder who filled out the spreadsheet makes less than $50,000 per year, while Americans with similar experience make $150,000 per year with up to 10 times as much
compensation in bonuses 

کارمندان مایکروسافت جهت شفاف سازی تصمیم گرفتند حقوق های خود را با یکدیگر به اشتراک بگذارند.
اشتراک‌ها
بررسی C# 7

Jon Skeet presents some of the features coming in C# 7 - tuples, pattern matching, local functions, throw expressions, numeric literals, and more – along with hints regarding future versions.  

بررسی C# 7