0
WebMatrix에서 몇 가지 기본 db 쿼리를 수행하고 있습니다.Visual Studio '12에서 WebMatrix 데이터베이스 도우미를 사용하려면 "특별한"작업이 필요합니까?
뭔가 같은
@{
var db = Database.Open("test"); //test is the name of my database
var selectQuery = "SELECT * FROM MY_CUSTOM_TABLE"
}
//Doing a `@foreach` and showing the items from the table
나는 Visual Studio에서 같은 일을
,나는 var db = Database.Open("test");
에서 오류를 Connection String not found
를 얻을.
일부 using
문이 누락 되었습니까? 아니면 완전히 잘못된 것을하고 있습니까? 내 Web.config의에서 연결 문자열을 정의하지 않았
먼저 문제가 있었다