ASP.NET MEMBERSHIP CONFIG SPECIFICATION

Mark Devid

Total Post:102

Points:714
Posted by  Mark Devid
 919  View(s)
Ratings:
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?

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: asp.net membership config specification

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!