I want to access my create.sql
file in the main folder of my server. It contains queries to set up my database. I have a problem to access this file at all.
1) I cannot really get there through Configuration
. I can only use AddJsonFile
, AddXmlFile
, and AddIniFile
. And I guess this is not the best idea to put a big sql file into any of those.
2) Mvc source on github seems to be missing MapPath
. So no possibility of using Server.MapPath("~/create.sql")
.
How to achieve this then?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…