اشتراک‌ها
تولید شرط های پویا توسط کتابخانه LambdaExpressionBuilder

A library that provides a simple way to create lambda expressions to filter lists and database queries. 

var filter = new Filter<Person>();
filter.By("Id", Operation.Between, 2, 4,  Connector.And);
filter.By("Contacts[Value]", Operation.EndsWith, "@email.com", default(string), Connector.And);
filter.By("Birth.Country", Operation.IsNotNull, default(string), default(string),  Connector.Or);
filter.By("Name", Operation.Contains, " John");
var people = People.Where(filter);

//or like this...

var filter = new Filter<Person>();
filter.By("Id", Operation.Between, 2, 4)
      .And.By("Birth.Country", Operation.IsNotNull)
      .And.By("Contacts[Value]", Operation.EndsWith, "@email.com")
      .Or.By("Name", Operation.Contains, " John ");
var people = People.Where(filter);

So that would generate an expression like this: 

People.Where(p => (p.Id >= 2 && p.Id <= 4)
             && (p.Birth != null && p.Birth.Country != null)
             && (p.Contacts != null && p.Contacts.Any(c => c.Value.Trim().ToLower().EndsWith("@email.com")))
             || (p.Name != null  && p.Name.Trim().ToLower().Contains("john")));

LambdaExpressionBuilder Nuget Package 

تولید شرط های پویا توسط کتابخانه LambdaExpressionBuilder
اشتراک‌ها
Visual Studio 2019 version 16.3.3 منتشر شد
Visual Studio 2019 version 16.3.3 منتشر شد
نظرات مطالب
استفاده از GitHub Actions برای Build و توزیع خودکار پروژه‌های NET Core.
یک نکته تکمیلی :
به هنگام تغییر فایل .yaml مربوط به github actions از روی local (و نه خود github) و push کردن آن به گیتهاب ممکن است به خطای زیر برخورد کنید.
refusing to allow an OAuth App to create or update workflow `.github/workflows/dotnetcore.yml` without `workflow` scope
این باگ قبلا اینجا گزارش شده است و راه حل آن نیز اینجا و اینجا ارائه شده است.
راه حل این است که Credential Manager ویندوز رفته و گزینه مربوط به "git:https://github.com" را حذف کنید. بدین ترتیب زمانی که دوباره دستور git push را اجرا میکنید از شما مجددا Crediential را درخواست میکند و بعد از آن می‌توانید بدون مشکل فایل .yaml را هل بدهید [ push کنید (-; ]
اشتراک‌ها
نحوه استفاده از source control بر روی دیتابیس

A robust DevOps environment requires having continuous integration for every component of the system. But far too often, the database is omitted from the equation, leading to problems from fragile production releases and inefficient development practices to simply making it harder to onboard new programmers.

In this article, we discuss the unique aspects of databases, both relational and NoSQL, in a successful continuous integration environment. 

نحوه استفاده از source control بر روی دیتابیس
اشتراک‌ها
پشتیبانی از WebSockets در ASP.NET Core

This article explains how to get started with WebSockets in ASP.NET  Core. WebSocket is a protocol that enables two-way persistent communication channels over TCP connections. It is used for applications such as chat, stock tickers, games, anywhere you want real-time functionality in a web application.  

پشتیبانی از WebSockets  در ASP.NET Core