- Updated the project to use iTextSharp 5.4.1.0. - Updated the project to use EPPlus 3.1.3. EPPlus 3.1.3 has a reference to System.Web for Uri decoding. So to use PdfReport from now on you need to change your project's target framework to full profile instead of the client profile. - Added FlushType parameter to FlushInBrowser method. FlushType.Inline displays PDF in the browser instead of showing the download popup. - Added EFCodeFirstMvc4Sample. - Added PdfFilePrinter sample. - Fixed `StartIndex cannot be less than zero` exception when parameter values are defined without defining the actual parameters in SQL data sources.
Here’s a summary of what’s new in this preview release:
Servers & middleware
Antiforgery middleware
API authoring
Antiforgery integration for minimal APIs
Native AOT
Request Delegate Generator supports interceptors feature
Full TrimMode is used for web projects compiled with trimming enabled
WebApplication.CreateEmptyBuilder
Blazor
Antiforgery integration
Server-side form handling improvements
Auto render mode
Register root-level cascading values
Improved integration of interactive components with server-side rendering
New EmptyContent parameter for Virtualize
Identity
New bearer token authentication handler
New API endpoints
Single page apps (SPA)
New Visual Studio templates
پروژه SmartUnderline
- مثال آن در اینجا ارائه شده. روی آن کلیک راست کنید و سورس آنرا مشاهده کنید. اسکریپت آن باید الحاق شود و متد init دارد در ابتدای کار. همچنین فایلهای CSS خاصی هم نیاز دارد. برای مشاهدهی یکجای فایلهای CSS آن از افزونهی web developer کمک بگیرید. این افزونه قابلیت نمایش یکجای فایلهای اسکریپت آن صفحه را هم دارد. کلا برای مهندسی معکوس این نوع صفحات گنگ بسیار مفید است.
EF Code First #3
۲ تا سوال داشتم: اول اینکه دوستدارم از EF Code First توی نرمافزارهای ویندوزی استفاده کنم ولی راهحلی براش پیدا نکردم(NuGet فقط توی Visual Web Developer کار میکنه)
دوم اینکه امکانش وجود داره که مجموعه آموزشهای MVCتون را به صورت یک فایل PDF در سایت قرار بدید؟
تبدیلگر تاریخ شمسی برای 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()));
ممنون میشم راهنمایی کنید.
The Bosque programming language is designed for writing code that is simple, obvious, and easy to reason about for both humans and machines. The key design features of the language provide ways to avoidaccidental complexity in the development and coding process. The goal is improved developer productivity, increased software quality, and enabling a range of new compilers and developer tooling experiences.