Adding Set to DBContext
My .Net Core application has a DbContext with several DBSet<> properties. However, I want to also add additional entities to the DbContext. They have System.ComponentModel.DataAnnotations, the...
View ArticleWhat is the correct implementation of middleware that validates a custom...
I had no luck getting asp `antiforgery` token working in my [angular app][1]. I am using `JWT` and I found thispost which suggests a workaround to avoid CSRF attacks. so I included `xsrfToken` in my...
View ArticleAfter logout in SSO, some time it is not rediercting to client application...
After logout in SSO, some time(if we logout after keeping idle for 10 mins) it is not rediercting to client application home page.
View ArticleReporting Tools For Asp.net Core MVC v2
Hii want to create a report in my application Asp.net Core mvc .net core 2i need a reporting tools like Stimulsoft Reports But Freeis there a free reporting tools for asp.net core 2 mvc ??
View ArticleHow to submit data with Jquery Datatables
<div class="comment-right-col comment-body">Hi Everyone,<div>I've been on this now for days without solution but with Edward effort, the issue is almost close.I'm trying to submit data i...
View ArticleSave multiple rows simultaneously from the same form
Hi Guys,I really hope you will be able to help me with this, I am still learning and can't get my head around this problem.I have a table that has one empty column into which user can enter a comment....
View ArticleAsp.Net Core Submit data with Jquery Datatables
Hi Everyone,I've been on this now for days without solution but with Edward effort, the issue is almost close.I'm trying to submit data i loaded into JQuery Datatables. Below is my complete codeThis is...
View ArticleAdding to IServiceCollection in Configure()
After adding most of my services in ConfigureServices(), One of the services is instantiated using app.ApplicationServices.GetServices<> at the beginning of Configure(). This utilizes the...
View ArticleRead Json into AWS Lambda
Hi,I have the following Json I'm trying to loop through:{"codea": "23DWDQW","request_time": "2018-01-05T16:44:24Z","lookingup": {"497": [{"mode": "transit","line": "497","aimed_time": "16:45" },...
View ArticleDateTime.Now.IsDaylightSavingTime() return wrong value
I'm running a application on Windows Server 2003 when i got a TimeZone problems.I did the following aspx page to confirm the problem:<%@ Import Namespace="System.Globalization.CultureInfo"...
View ArticleAuthentication and Authorization with JWT without EF & Identity
Hi there,I'm searching for tutorials / codesnippets / guide which tells me, how to implement JWT authentication without Identity and EF. Also i need some informations in how to implement an...
View ArticleUsing Kestrel with named pipes?
Hello,I was wondering if anyone knew how to get Kestrel to listen on named pipes such that the only modifications to an already existing program that is using HTTPClient should be changing the...
View Articleimage uploader for ckeditor in asp.net core
Hello.I am workig on a project using asp.net core and in this project I need to add feature for uploading image in ckeditor, I did this in WebForms but in asp.net core I have no idea, can some one help...
View ArticleRender Asp.net core Razor page to string?
In Asp.net core 2 Razor pages, I want to render a Razor page with a model, and save it to a string. The intention is to send the string as an email (the rendered page is an invoice). I found this for...
View ArticleWhat is the correct implementation of middleware that validates a custom...
I had no luck getting asp `antiforgery` token working in my [angular app][1]. I am using `JWT` and I found thispost which suggests a workaround to avoid CSRF attacks. so I included `xsrfToken` in my...
View ArticleInject either parent or child object based on route value in ASP.NET core
How to inject either parent or child object based on route value to a asp.net mvc core controller. If possible by .NET CORE default DI mechanism or something like structure map . if route value is x i...
View ArticleHow to avoid nullreference error when trying to add data to viewmodel?
Trying to learn programming with Razor pages in asp.net core 2. The page should provide an registration form for events. The database lookup based on the event id in the querystring works, however I...
View ArticleJquery AjaxComplete calls Action Method indefinitely with DataTables Server Side
Hi Everyone,I've been battling with this for days now and no solution yet. Below is my complete code.This is my Model Classpublic class GradeStep : Base.Configurations { public int Id { get; set; }...
View ArticleHow can i translate this string sql query in entityframework/link
Hello,I want to write the same query in an entityframework context, with linq query syntax.The problem is not the query itself but the way i build this query. It is easy to concatenate strings in order...
View ArticleConfiguration.GetConnectionString() issue
public void ConfigureServices(IServiceCollection services) { //数据库配置 //services.AddDbContextPool(f => f.UseMySQL(Configuration.GetConnectionString("EntityContext")));...
View Article