راهنمای زبان Rust از مایکروسافت
This is a (non-comprehensive) guide for C# and .NET developers that are completely new to the Rust programming language. Some concepts and constructs translate fairly well between C#/.NET and Rust, but which may be expressed differently, whereas others are a radical departure, like memory management. This guide provides a brief comparison and mapping of those constructs and concepts with concise examples.
بررسی Blazor United در دات نت 8
Fixed
- Fixed Kerberos authentication failure when using .NET 6. #1411
- Fixed connection failure when using
SqlLocalDB
instance pipe name. #1433 - Fixed a failure when executing concurrent queries requiring enclaves. #1451
- Updated obsolete API calls targeting .NET 6. #1401
Changed
- Added AppContext switch
SuppressInsecureTLSWarning
to allow suppression of TLS security warning when usingEncrypt=false
in the connection string. #1457
کنفرانس NET Conf: Focus on Blazor.
.NET Conf: Focus on Blazor is a free, one-day livestream event that features speakers from the community and .NET product teams that are working on building web apps with C# and Blazor. You don't need to use JavaScript anymore with Blazor technology! Blazor lets you build interactive web UIs using C# instead of JavaScript.
بهبودهای کارآیی در ASP.NET Core 6
مدلسازی نمونهی آن به صورت زیر است:
public class UIModel { public int PersianYear { set; get; } public int[] SelectedPersianMonths { set; get; } }
var model = new UIModel { PersianYear = 1391, SelectedPersianMonths = new[] { 4, 5 } };
var itemsQuery = context.Members.AsQueryable(); // Linq chaining where clauses as an `Or` instead of `And` var predicate = PredicateBuilder.False<Member>(); foreach (var month in model.SelectedPersianMonths) { var start = new DateTime(model.PersianYear, month, 1, new PersianCalendar()); var end = new DateTime(model.PersianYear, month, month <= 6 ? 31 : 30, new PersianCalendar()); // We can chain `IQueryable`s. // itemsQuery = itemsQuery.Where(x => x.JoinDate.Date >= start && x.JoinDate.Date <= end); // But it will be translated as an `AND`, not `OR` predicate = predicate.Or(x => x.JoinDate.Date >= start && x.JoinDate.Date <= end); } itemsQuery = itemsQuery.Where(predicate); var items = itemsQuery.Select(x => new { x.FirstName, x.Surname }).ToList();
SELECT [m].[FirstName], [m].[Surname] FROM [Members] AS [m] WHERE ((CONVERT (DATE, [m].[JoinDate]) >= '2012-06-21T00:00:00') AND (CONVERT (DATE, [m].[JoinDate]) <= '2012-07-21T00:00:00')) OR ((CONVERT (DATE, [m].[JoinDate]) >= '2012-07-22T00:00:00') AND (CONVERT (DATE, [m].[JoinDate]) <= '2012-08-21T00:00:00'));
On nuget.org:
- 47% of the top one thousand packages support .NET Standard
- 30% of all packages support .NET Standard (about 48k out of 160k packages)