Exemplo n.º 1
0
 public GitHubContributor(RepositoryContributor contributor)
 {
     Login = contributor.Login;
 }
Exemplo n.º 2
0
        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();
            }