protected static SqlConnection getDb0Connection() { string connectionstring = LogicCenter.GetDB0ConnectionString(CommWebSetup.DB0_CodeString); //取得連線字串 SqlConnection connection = new SqlConnection(connectionstring); return(connection); }
public static ApplicationDbContext Create() { string connstr = LogicCenter.GetDB0ConnectionString(CommSetup.CommWebSetup.DB0_CodeString); return(new ApplicationDbContext(connstr)); }