public List <OpenData> Find_Data_From_Db(string name) { repository DBoperation = new repository(); var SqlConn = DBoperation.Connection(); return(DBoperation.Select_All_Data(SqlConn, name)); }
public void ImportToDb(List <OpenData> openDatas) { repository DBoperation = new repository(); var SqlConn = DBoperation.Connection(); openDatas.ForEach(new_items => { DBoperation.Insert_Data(SqlConn, new_items); }); }