This is a migrated thread and some comments may be shown as answers.

Data Access and ASP.net Identity 2.0

4 Answers 167 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
KIM
Top achievements
Rank 1
KIM asked on 27 Aug 2014, 06:15 AM
Hi Guys,

I am new in this area. I have tried to search related tutorials example. Unfortunately, there are not  those  practice online. If you have any related topics or tutorial or video, can you left the link here? I will be grateful.

Currently, I want to integrate Data Access with ASP.net Identity 2.0, and I am not sure how to do it.

4 Answers, 1 is accepted

Sort by
0
Kristian Nikolov
Telerik team
answered on 29 Aug 2014, 10:44 AM
Hi KIM,

Thank you for contacting us.

ASP.NET Identity 2.0 can be extended with custom storage. This article explains the general process of how this can be achieved.

On the Telerik Data Access side, you will have to create a Domain Model or a Fluent Model with the required persistent classes such as Users, Roles and more. Based on the aforementioned tutorial, the persistent classes will have to implement specific interfaces such as IUser. You can achieve this by adding a partial definition of the persistent classes in a separate code file to add the interface implementation statement. You should then be able to create custom store classes (as shown in the tutorial) that would use your Telerik Data Access model.

Note that as it appears that the store class methods are asynchronously called, it might be a good idea to enable the Multithreaded Context option.

I hope this helps. If you have additional questions or need help, feel free to get back to us.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
0
KIM
Top achievements
Rank 1
answered on 24 Oct 2014, 06:17 AM
Hi ,

I am sorry to reply you late.  Thanks your suggestions

I have followed the the link to create a customized UserStore.  Then I got problem,   How can I make the OwinContext work with OpenAccessContext

Best Regards,
KIM
0
Kristian Nikolov
Telerik team
answered on 27 Oct 2014, 09:32 AM
Hi KIM,

Currently we are unsure of the exact scenario you are facing. Could you please provide us with the following details:
  1. What is the exact situation where you need to integrate TlerikOpenAccessContext with OwinContext, and what is the functionality you need to achieve by doing so?
  2. Are you experiencing any sort of exception and if so what is it?
  3. If the problem at hand is related to a specific step of the Custom Storage Providers tutorial please tell us which one?

This information should help us gain better understanding of your scenario.

We are looking forward to your feedback.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
0
Kristian Nikolov
Telerik team
answered on 30 Oct 2014, 01:32 PM
Hi KIM,

We are sorry for the inconvenience you have experienced. We have notified the team responsible for the respective sites about the issues.

Regarding your question, the CreatePerOwinCotnext method expects a method which would instantiate some an object of certain type, in your scenario this type would be the context of your model. Such method is not provided out of the box so you will have to manually implement it as per your requirements. Currently it appears that a method that just returns a new instance of the model`s context may be sufficient (using the first overload of CreatePerOwinContext).

On another note, one of our users has developed an open source identity provider for ASP.NET Identity 2.x using Telerik Data Access. For more information please refer to this forum thread where he has posted a reference to the library and a link to a blog post with a description of how it can be used.

I hope this helps. Should you have further questions feel free to get back to us.

Regards,
Kristian Nikolov
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Getting Started
Asked by
KIM
Top achievements
Rank 1
Answers by
Kristian Nikolov
Telerik team
KIM
Top achievements
Rank 1
Share this question
or