15,890,282 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Moses_k (Top 8 by date)
Moses_k
3-Nov-20 12:23pm
View
@using (Ajax.BeginForm("RegisterSec", "ClubUsers", new { id = "__AjaxAntiForgeryForm" }, new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "user" }))
{
@Html.AntiForgeryToken();
Register
code
@Html.Captcha("...", "", 4, "...", true)
کد امنیتی
@*
code
*@
@*@if (ViewData.ModelState.Any(x => x.Value.Errors.Any()))
{
@Html.Raw(HttpUtility.HtmlDecode(@Html.ValidationSummary(true, "", new { @class = "text-danger" }).ToHtmlString()))
}*@
@*
Confirm
*@
Register
}
this is for index part without partial view...
in controller part
if (IsValidate == true)
return PartialView("Register", model);
else
//return RedirectToAction("Index", "Home", new { model});
return PartialView();
Moses_k
3-Nov-20 12:10pm
View
ok
Moses_k
21-Oct-20 3:51am
View
Thanks for your answer. I have just a profile Image and it is small and the same size.
Moses_k
20-Oct-20 6:41am
View
Yeah, I want to get this size on disk
Moses_k
4-Oct-20 7:11am
View
this is Error Message => Sequence contains no matching element
this line raised noted error =>
string keyName = dbEntry.Entity.GetType().GetProperties().Single(p => p.GetCustomAttributes(typeof(KeyAttribute), false).Count() > 0).Name;
Moses_k
3-Oct-20 1:32am
View
but I think it dose not exist dbContext.Model.GetEntityTypes().
for asp.net mvc5 it exist in asp .net core.
Moses_k
3-Oct-20 1:31am
View
Hi,
No, I have Dbcontext for Identity MVC5.
RoleBaseDbContext db = new RoleBaseDbContext();
var s=ContextExtensions.GetTableName<string>(db);
foreach (var ent in this.ChangeTracker.Entries().Where(p => p.State == EntityState.Added || p.State == EntityState.Deleted || p.State == EntityState.Modified))
{
// For each changed record, get the audit record entries and add them
foreach (All_Log x in GetAuditRecordsForChange(ent, userId))
{
this.All_Log.Add(x);
}
}
Moses_k
1-Oct-20 6:41am
View
I'm using Asp.net MVC5 and my dbcontext does not have Model.
I just want to show Physical Table Name of current model.
Show More