اشتراک‌ها
بایندینگ به شیوه ASP.NET MVC در ASP.NET WEB API

This lets you do things that you can’t do in WebAPI’s default binder, specifically:

  1. ModelBinds everything, including the body. Assumes the body is FormUrl encoded
  2. This means you can do MVC scenarios where a complex type is bound with one field from the query string and one field from the form data in the body.
  3. Allows multiple parameters to be bound from the body. 
بایندینگ به شیوه ASP.NET MVC در ASP.NET WEB API
اشتراک‌ها
تشخیص تغییرات در Angular2

The basic task of change detection is to take the internal state of a program and make it somehow visible to the user interface. This state can be any kind of objects, arrays, primitives, … just any kind of JavaScript data structures. 

تشخیص تغییرات در Angular2
اشتراک‌ها
کتاب Readings in Database Systems, 5th Edition

Readings in Database Systems (commonly known as the "Red Book") has offered readers an opinionated take on both classic and cutting-edge research in the field of data management since 1988. Here, we present the Fifth Edition of the Red Book — the first in over ten years. 

کتاب Readings in Database Systems, 5th Edition
اشتراک‌ها
بررسی C# Object Notation

JavaScript Object Notation (JSON) is a subset of the JavaScript language used for the definition and exchange of data. While I’m not proposing that we create a similar standard using C#, I do want to illustrate some of the rich object initialization syntax of the language.

بررسی C# Object Notation
اشتراک‌ها
استفاده از Sql Server FileTable به همراه EF
FileTable is a great new feature in SQL Server 2012 which facilitates storing and working with unstructured blob data in SQL Server. Unfortunately is not yet supported in Entity Framework, so you cannot simply use FileTable in your entity model. But there is a workaround for this inconvenience, which I am going to show you in this post. 
استفاده از Sql Server FileTable به همراه EF
اشتراک‌ها
بانک اطلاعاتی LokiJS

LokiJS is an in-memory database which prioritises performance over everything. LokiJS supports field indexing for faster document access and performs really well (near 500,000 ops/s) on those. Its built-in DynamicView class also enables to utilize indexes on data subsets for even faster performance.  

بانک اطلاعاتی LokiJS
نظرات مطالب
React 16x - قسمت 7 - ترکیب کامپوننت‌ها - بخش 1 - ارسال داده‌ها، مدیریت رخ‌دادها
 این استاندارد HTML 5 هست. در این استاندارد اگر یک attribute یا ویژگی به صورت boolean تعریف شود، اگر بدون مقدار ذکر شود، مقدار آن true بازگشت داده خواهد شد. البته این نکته فقط در مورد booleanها است. اگر از ویژگی‌های خاصی مانند data-checked استفاده کنید و مقداری برای آن ذکر نشود، مقدار انتساب داده شده‌ی به آن، یک رشته‌ی خالی خواهد بود.
A number of attributes are boolean attributes.
The presence of a boolean attribute on an element represents the true value,
and the absence of the attribute represents the false value.
نظرات مطالب
صفحه بندی، مرتب سازی و جستجوی پویای اطلاعات به کمک Kendo UI Grid
در مثالی که زدند، چون این datasource از نوع remote هست، دستورات ()grid.dataSource.read(); grid.refresh مجددا منبع داده گرید را بر اساس اطلاعات دریافتی از سرور پر می‌کنند (re-bind).
function customSearch() {
     var filters = [];
     var grid = $("#grid").data("kendoGrid");
       
     filters.push({ field: "f1", operator: "eq", value: 1 });
     filters.push({ field: "f2", operator: "eq", value: "xyz" });
       
     grid.dataSource.filter({
          logic: "and",
          filters: filters
        });
    grid.dataSource.read();
    grid.refresh();
}
در این مثال فقط قسمت value را باید از رابط کاربری که طراحی کردید، دریافت و مقدار دهی کنید.
نظرات مطالب
کار با Areas در ASP.NET Core
یک نکته‌ی تکمیلی
اگر خطای ذیل را دریافت کردید:
AmbiguousActionException: Multiple actions matched. 
The following actions matched route data and had all constraints satisfied:
Sample.Controllers.HomeController.Index (Sample)
Sample.Areas.Blog.Controllers.HomeController.Index (Sample)
به معنای وجود دو کنترلر Home، به همراه اکشن متد Index هستند که یکی در ناحیه‌ی Area تعریف شده‌است و دیگری در همان محل متداول آن. مشکل اینجا است که کنترلر Home واقع در ناحیه‌ی Blog، دارای ویژگی فراموش شده‌ی [Area] است که با افزودن آن، این خطا برطرف می‌شود.