partial void DeleteOAuthToken(OAuthToken instance);
partial void UpdateOAuthToken(OAuthToken instance);
/// <summary> /// Deprecated Method for adding a new object to the OAuthTokens EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOAuthTokens(OAuthToken oAuthToken) { base.AddObject("OAuthTokens", oAuthToken); }
partial void InsertOAuthToken(OAuthToken instance);
/// <summary> /// Create a new OAuthToken object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="providerId">Initial value of the ProviderId property.</param> /// <param name="consumerKey">Initial value of the ConsumerKey property.</param> /// <param name="consumerSecret">Initial value of the ConsumerSecret property.</param> /// <param name="createdAt">Initial value of the CreatedAt property.</param> public static OAuthToken CreateOAuthToken(global::System.Int32 userId, global::System.Int32 providerId, global::System.String consumerKey, global::System.String consumerSecret, global::System.DateTime createdAt) { OAuthToken oAuthToken = new OAuthToken(); oAuthToken.UserId = userId; oAuthToken.ProviderId = providerId; oAuthToken.ConsumerKey = consumerKey; oAuthToken.ConsumerSecret = consumerSecret; oAuthToken.CreatedAt = createdAt; return oAuthToken; }