Home > DeveloperSection > Forums > asp.net membership config specification
Mark Devid
Mark Devid

Total Post:102

Points:714
Posted on    August-22-2014 1:36 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 679  View(s)
Rate this:

I'm looking at the ado.net ef membership provider and notice they have something a little different to register the provider

type="OmidID.Web.Security.EFMembershipProvider`2[

                    [OmidID.Web.Security.Default.DefaultUser,

                         OmidID.Web.Security.EFMembershipProvider],

                    [System.Int64]], OmidID.Web.Security.EFMembershipProvider"

I've never seen the bits in square brackets before and took a look around and can't seem to find what they allude to, I'm guessing its setting the type of user but I'm not sure.

Is this configuration specified somewhere? what does it mean?



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-22-2014 2:04 AM

The type is Generic, the square brackets indicate what types the generic type should be used with. In this case the EFMembershipProvider class has 2 generic parameters that should have the types OmidID.Web.Security.Default.DefaultUser in the Assembly OmidID.Web.Security.EFMembershipProvider and System.Int64. The EFMembershipProvider class itself is in the Assembly OmidID.Web.Security.EFMembershipProvider.


Don't want to miss updates? Please click the below button!

Follow MindStick