示例#1
0
 public static Goles SelectByJugador(int idJugador)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     GolesDS.tbl_golesDataTable table = adapter.SelectByJugador(idJugador);
     if (table.Rows.Count == 0)
     {
         return(null);
     }
     return(RowToDto(table[0]));
 }
示例#2
0
    public static List <Goles> SelectByEvento(int idEvento)
    {
        GolesDSTableAdapters.tbl_golesTableAdapter adapter =
            new GolesDSTableAdapters.tbl_golesTableAdapter();
        GolesDS.tbl_golesDataTable table = adapter.SelectByEvento(idEvento);
        List <Goles> listGoles           = new List <Goles>();

        foreach (GolesDS.tbl_golesRow row in table)
        {
            listGoles.Add(RowToDto(row));
        }
        return(listGoles);
    }
示例#3
0
 public static void DeleteByJugador(int idJugador)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.DeleteByJugador(idJugador);
 }
示例#4
0
 public static void Delete(int id)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.DeleteState(id);
 }
示例#5
0
 public static void DeleteByEvento(int idEvento)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.DeleteByEvento(idEvento);
 }
示例#6
0
 public static void UpdateGoles(int gol, int id)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.UpdateGolesJugador(gol, id);
 }
示例#7
0
 public static void UpdatePJ(int idJugador, int partidosJugados)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.UpdatePartidosJugados(partidosJugados, idJugador);
 }
示例#8
0
 public static void Update(int idJugador, int partidosJugados, int goles, int id)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.UpdateGoles(idJugador, partidosJugados, goles, 0, id);
 }
示例#9
0
 public static void Insertar(int idJugador, int partidosJugados, int goles)
 {
     GolesDSTableAdapters.tbl_golesTableAdapter adapter =
         new GolesDSTableAdapters.tbl_golesTableAdapter();
     adapter.InsertGoles(idJugador, partidosJugados, goles, 0);
 }