/// <summary> /// Create a new AuthToken object. /// </summary> /// <param name="token">Initial value of the Token property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="requireLogin">Initial value of the RequireLogin property.</param> /// <param name="apiKey">Initial value of the ApiKey property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static AuthToken CreateAuthToken(global::System.Guid token, global::System.Guid userId, global::System.Boolean requireLogin, global::System.Guid apiKey, global::System.Boolean isDeleted) { AuthToken authToken = new AuthToken(); authToken.Token = token; authToken.UserId = userId; authToken.RequireLogin = requireLogin; authToken.ApiKey = apiKey; authToken.IsDeleted = isDeleted; return authToken; }
/// <summary> /// Deprecated Method for adding a new object to the AuthTokens EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAuthTokens(AuthToken authToken) { base.AddObject("AuthTokens", authToken); }