当前位置: 首页>>代码示例>>C#>>正文


C# Util.ophalen方法代码示例

本文整理汇总了C#中Util.ophalen方法的典型用法代码示例。如果您正苦于以下问题:C# Util.ophalen方法的具体用法?C# Util.ophalen怎么用?C# Util.ophalen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Util的用法示例。


在下文中一共展示了Util.ophalen方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: getAllPlaatsen

    public DataSet getAllPlaatsen()
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=> param.Add(new SqlParameter("@variabelenaam",variabele));
        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT * FROM tblPlaats;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:10,代码来源:PlaatsenDAO.cs

示例2: getAllHotelsByPlaats

    public DataSet getAllHotelsByPlaats(String plaats)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@plaats",plaats));
        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT tblHotel.* FROM tblHotel INNER JOIN tblPlaats ON tblHotel.plaatsID = tblPlaats.ID WHERE (tblPlaats.naam = @plaats);";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:11,代码来源:HotelDAO.cs

示例3: getPlaatsById

    public DataSet getPlaatsById(string id)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", id));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT * FROM tblPlaats WHERE [email protected];";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:PlaatsenDAO.cs

示例4: getDatum

    public DataSet getDatum(int TicketID)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", TicketID));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT vertrekDatum FROM tblTicket WHERE ID = @id;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:TicketDAO.cs

示例5: getHistoriek

    public DataSet getHistoriek(int gebruikersid)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@gebruikersid", gebruikersid));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT tblTicket.vertrekDatum AS Datum, tblTrein.vertrekID AS Vertrek, tblTrein.aankomstID AS Aankomst, tblTicket.totalePrijs AS Betaald, tblTicket.ID AS TicketID FROM tblTicket INNER JOIN tblTrein ON tblTicket.treinID = tblTrein.ID INNER JOIN tblGebruikers ON tblTicket.gebruikerID = tblGebruikers.ID WHERE  (tblGebruikers.ID = @gebruikersid) AND (tblTicket.vertrekDatum < CURRENT_TIMESTAMP) ORDER BY Datum";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:RitDAO.cs

示例6: getIdByLogin

    public DataSet getIdByLogin(string login)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@login", login));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT id FROM tblGebruikers WHERE [email protected];";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:GebruikersDAO.cs

示例7: getMailById

    public DataSet getMailById(int id)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", id));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT email FROM tblGebruikers WHERE [email protected];";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:GebruikersDAO.cs

示例8: getLogins

    public DataSet getLogins(String login)
    {
        util = new Util();
        param = new List<SqlParameter>();
        param.Add(new SqlParameter("@login", login));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT gebruikersnaam FROM tblGebruikers where gebruikersnaam = @login;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:11,代码来源:GebruikersDAO.cs

示例9: getTicket

    public DataSet getTicket(TicketData t)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=> param.Add(new SqlParameter("@variabelenaam",variabele));
        param.Add(new SqlParameter("@gebruikerID", t.gebruikerID));
        param.Add(new SqlParameter("@totalePrijs", t.totalePrijs));
        param.Add(new SqlParameter("@aankomstdatum", t.aankomstdatum));
        param.Add(new SqlParameter("@vertrekdatum", t.vertrekdatum));
        param.Add(new SqlParameter("@typeID", t.typeID));
        param.Add(new SqlParameter("@treinID", t.treinID));

        SqlParameter[] sqlparam = param.ToArray();

        strSQL = "SELECT id FROM tblTicket WHERE( gebruikerID = @gebruikerID AND totalePrijs = @totalePrijs AND aankomstdatum = @aankomstdatum AND vertrekDatum = @vertrekdatum AND typeID = @typeID AND treinID = @treinID);";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:18,代码来源:TicketDAO.cs

示例10: getPersonenPerTicket

    public DataSet getPersonenPerTicket(int tr)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", tr));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT * FROM tblPersonenPerTicket WHERE TicketID = @id;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:TicketDAO.cs

示例11: getRitByID

    public DataSet getRitByID(int i)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", i));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "select * from tblRit WHERE ID = @id ;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:RitDAO.cs

示例12: getRit

    public DataSet getRit(int treinID, int day, TimeSpan tijd)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@trein", treinID));
        param.Add(new SqlParameter("@day", day));
        param.Add(new SqlParameter("@tijd", tijd));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "select tblRit.ID, treinID, vertrekUur, vertrekID, aankomstID, prijs, duur from tblRit, tblTrein where (treinID = @trein  AND treinID = tblTrein.ID AND vertrekUur = @tijd AND weekdag = @day) ;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:14,代码来源:RitDAO.cs

示例13: getRittenTrein

    public DataSet getRittenTrein(int id, int day)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", id));
        param.Add(new SqlParameter("@day", day));

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT tijdstip FROM tblRit WHERE treinID = @id AND weekdag = @day;";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:13,代码来源:RitDAO.cs

示例14: getRitCapaciteit

    public DataSet getRitCapaciteit(int r)
    {
        util = new Util();
        param = new List<SqlParameter>();
        //to add parameters=>
        param.Add(new SqlParameter("@id", r));;

        SqlParameter[] sqlparam = param.ToArray();
        strSQL = "SELECT capaciteit FROM tblRit WHERE treinID = @id";

        return util.ophalen(strSQL, sqlparam);
    }
开发者ID:Quadboy55,项目名称:VPRtravel,代码行数:12,代码来源:RitDAO.cs


注:本文中的Util.ophalen方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。