This release brings continued improvements to the C# and .NET experiences, new Git performance and experiences, updates for C++ developers, and new Azure tools for local development and deployment. We also continue to address your direct feedback submitted via Developer Community, addressing over 400 feedback items in this release! You can see the broader list of community feedback addressed in releases by visiting the fixes page on Developer Community.
Please see the SQL Server Management Studio release notes for a comprehensive list of bug fixes.
Rust – the Ultimate Programming Language?
What makes a good programming language? Syntax? Compiler? Tools and ecosystem? It is tempting to say “all of that” but in that case, why there are so many different programming languages? All these components are very important but they alone can’t make the language “good”. One of essential things is the purpose — like languages for rapid development, or development of distributed algorithms, or general purpose for high-level and low-level applications, or easy to learn, or safe to use and so on.
تبدیلگر تاریخ شمسی برای AutoMapper
Type 'System.String' does not have a default constructor Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Type 'System.String' does not have a default constructor
من به این صورت نوشتم :
CreateMap<DateTime, string>().ConvertUsing(new DateTimeToPersianDateTimeConverter()); CreateMap<User, UserViewModel>();
این هم model و viewmodel :
public class User : IdentityUser<long, UserLogin, UserRole, UserClaim> { public virtual DateTime RegisterDate { get; set; } // bla bla }
public class UserViewModel { public string RegisterDate { get; set; } }
public List<UserViewModel> GetUsersByPage(int pageNumber, string pagerSortBy, string pagerSortOrder, string term, out int records, int recordsPerPage) { //bla bla bla return users.Skip(skipRecords) /*این خط خطا داره*/ .Take(recordsPerPage) .Project(_mappingEngine).To<UserViewModel>().Future().ToList(); }
ولی وقتی اینطوری استفاده میکنم خطا نمیده ولی خب به درد نمیخوره. من میخوام تبدیلش کنم به فارسی :
CreateMap<User, UserViewModel>() .ForMember(d => d.RegisterDate, m => m.MapFrom(s => s.RegisterDate.ToString()));
ممنون میشم راهنمایی کنید.
Today we have several releases to talk about: there’s the release of Visual Studio 2017 version 15.3, the release of .NET Core 2.0, and a release of Visual Studio for Mac version 7.1. We’ll talk about them briefly in that order, but as always, there’s a lot more information in the release notes for each product. If you’d like to jump right in, download Visual Studio 2017 version 15.3, download .NET Core 2.0, and download Visual Studio for Mac.
میان افزار لاگ خطاها در asp.net core
ChatGPT مزخرفه!
ChatGPT is bullshit
Recently, there has been considerable interest in large language models: machine learning systems which produce human-like text and dialogue. Applications of these systems have been plagued by persistent inaccuracies in their output; these are often called “AI hallucinations”. We argue that these falsehoods, and the overall activity of large language models, is better understood as bullshit in the sense explored by Frankfurt (On Bullshit, Princeton, 2005): the models are in an important way indifferent to the truth of their outputs. We distinguish two ways in which the models can be said to be bullshitters, and argue that they clearly meet at least one of these definitions. We further argue that describing AI misrepresentations as bullshit is both a more useful and more accurate way of predicting and discussing the behaviour of these systems.