2
Answers

Looking for a good database application tutorial

John Loney

John Loney

15y
5.1k
1
I am an intermediate user of C# and I want to make a database application for my job as a paramedic that will track our pharmaceutical usage. I am told that using the database wizards are not good practice for building databases. Where can I find a good tutorial on databases that is not only explanatory, but shows the professional way to build a database application ? I want to use C#
Answers (2)
0
Abhishikt Kujur

Abhishikt Kujur

NA 3 0 18y
Hi all,
        After searching a while i got some results...I had to search files from a server location so it was needed a path to map with server which I did using,        
                            string StrRoot_E = Server.MapPath("../FolderName1/");
var StrRoot_E contains the string "../FolderName1/" is the path for the specific server Directory and to extract files of specific types,
                           string files_E() = Directory.GetFiles(StrRoot_E, "*.zip");
"*.zip " is the filetype which is stored in an array of strings,and then you can extract each file from that array of strings and can use for purpose.

Method Server.MapPath() takes string argument which is the physical path in your server while method Directory.GetFiles() takes two arguments, the Path of the Directory and the fileType both as strings.