Exemplo n.º 1
0
        public List <OpenData> Find_Data_From_Db(string name)
        {
            repository DBoperation = new repository();
            var        SqlConn     = DBoperation.Connection();

            return(DBoperation.Select_All_Data(SqlConn, name));
        }
Exemplo n.º 2
0
        public void ImportToDb(List <OpenData> openDatas)
        {
            repository DBoperation = new repository();
            var        SqlConn     = DBoperation.Connection();

            openDatas.ForEach(new_items =>
            {
                DBoperation.Insert_Data(SqlConn, new_items);
            });
        }