public GitHubContributor(RepositoryContributor contributor) { Login = contributor.Login; }
public static int InsertContributor(SqlConnection connection, ProcessRepositoryRequest repo, RepositoryContributor contributor) { var command = new SqlCommand($"INSERT INTO RepoStats.{TABLE_CONTRIBUTORS} ({COLUMN_REPO_ID}, {COLUMN_USERNAME}, {COLUMN_CONTRIBUTIONS}) VALUES (@0, @1, @2)", connection); command.Parameters.AddWithValue("@0", repo.Id); command.Parameters.AddWithValue("@1", contributor.Login); command.Parameters.AddWithValue("@2", contributor.Contributions); return command.ExecuteNonQuery(); }