示例#1
0
        protected IdentityProvider createIdentityProvider(string uri)
        {
            var dbIdentityProvider = getIdentityProvider(uri);
            
            if (dbIdentityProvider != null)
            {
                throw new ArgumentException("Identity Provider already exists for URI " + uri);
            }

            dbIdentityProvider = new IdentityProvider
            {
                Uri = uri
            };
            BlogDb.IdentityProviders.InsertOnSubmit(dbIdentityProvider);
            BlogDb.SubmitChanges();
            
            return dbIdentityProvider;
        }
示例#2
0
 partial void UpdateIdentityProvider(IdentityProvider instance);
示例#3
0
 partial void DeleteIdentityProvider(IdentityProvider instance);
示例#4
0
 partial void InsertIdentityProvider(IdentityProvider instance);