예제 #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);