arichika / aspnet.identity.oracle Goto Github PK
View Code? Open in Web Editor NEWAspNet.Identity.Oracle for ASP.NET Identity 2.0 with ODP.NET
License: MIT License
AspNet.Identity.Oracle for ASP.NET Identity 2.0 with ODP.NET
License: MIT License
@cengizani wrote...
cengizani commented 2 hours ago
Hi Arichika, Firstly, thank you so much for this project. It is good idea. I want to use your solution with our oracle db. I have completed register and login process. But when I want to user administration and group management then I have an ApplicationDbInitializer problem. So, when unblock code start with "public class ApplicationDbInitializer : " in IdentityConfig.cs and IdentityModels.cs " Database.SetInitializer<" code block then have an error 3 Message:"The type 'IdentitySample.Models.ApplicationDbContext' cannot be used as type parameter 'TContext' in the generic type or method
'System.Data.Entity.DropCreateDatabaseIfModelChanges'.
There is no implicit reference conversion from 'IdentitySample.Models.ApplicationDbContext' to 'System.Data.Entity.DbContext'."
Would you like the help me for this problem? Thanks again.
@cengizani wrote...
cengizani commented 44 minutes ago
I found something, apologizing is made;
In IdentityModels.cs ApplicationDbContext class inherit from OracleDatabase.
"public class ApplicationDbContext : OracleDatabase"
in some examples on the Internet an inherit from IdentityDbContext with applicationuser
I wonder how it's done in the original MySql instance of info?
"public class ApplicationDbContext : IdentityDbContext"
or
"public class ApplicationDbContext : IdentityDbContext"
@arichika wrote...
arichika commented 2 minutes ago
"AspNet.Identity.Oracle" has been designed so that it does not use any of Entity Framework.
So, I think that "IdentityDbContext" can not be used.
Be in this code there is a bug...
https://github.com/arichika/AspNet.Identity.Oracle/blob/master/Src/SampleWebSite/App_Start/IdentityConfig.cs#L136
"new RoleStore(param)" requires OracleDatabase object.
https://github.com/arichika/AspNet.Identity.Oracle/blob/master/Src/AspNet.Identity.Oracle/RoleStore.cs#L46
The code might need cast likes
https://github.com/arichika/AspNet.Identity.Oracle/blob/master/Src/SampleWebSite/App_Start/IdentityConfig.cs#L29
Want you to create admin role for ApplicationDbInitializer unblock code? Right? @cengizani
and I will create new issue ticket for this question.
MyConnectionStrings.config was not added in the Sampe Website
Hi,
Loved your code. Very helpful.
One issue had me puzzled for sometime now. The user lockout (after x tries) does not work.
After debugging your code I found that the following code should be fixed wherever it occurs in UsetTable.cs
user.LockoutEndDateUtc = string.IsNullOrEmpty(row["LOCKOUTENDDATEUTC"]) ? DateTime.Now : DateTime.Parse(row["LOCKOUTENDDATEUTC"]);
should be
user.LockoutEndDateUtc = string.IsNullOrEmpty(row["LOCKOUTENDDATEUTC"]) ? DateTime.UtcNow : DateTime.Parse(row["LOCKOUTENDDATEUTC"]);
Hope I helped a bit.
Best regards,
Harris
Some files are missing when I clone.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.