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; }
partial void UpdateIdentityProvider(IdentityProvider instance);
partial void DeleteIdentityProvider(IdentityProvider instance);
partial void InsertIdentityProvider(IdentityProvider instance);