0
MySQL 데이터베이스에 대해 실행중인 ActiveRecord와 함께 Subsonic 3.0.0.3을 사용하고 있습니다.MySQL 공급자가있는 SubSonic 크래크
// Approach 1
var db = new testDB();
db.Insert.Into<company>(c => c.name) .Values("Acme") .Execute();
을하지만이 충돌 : 나는이 잘 작동하는지 찾는거야
// Approach 2
company c = new company();
c.name = "Acme";
c.Save();
충돌 즉시 아니지만, 종료시 :
One of the background threads threw exception: System.NullReferenceException: Object reference not set to an instance of an object.
at MySql.Data.MySqlClient.NativeDriver.FetchDataRow(Int32 statementId, Int32 columns)
at MySql.Data.MySqlClient.Driver.FetchDataRow(Int32 statementId, Int32 columns)
at MySql.Data.MySqlClient.Driver.SkipDataRow()
at MySql.Data.MySqlClient.ResultSet.Close()
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlDataReader.Close()
at MySql.Data.MySqlClient.MySqlConnection.Close()
at MySql.Data.MySqlClient.MySqlConnection.Dispose(Boolean disposing)
at System.ComponentModel.Component.Finalize()
Test host process exited unexpectedly.
은 주어진 방법 1 I와 새로 삽입 된 레코드 ID를 가져 오는 방법을 알아낼 수 없으며 접근 방식 2로 인해 충돌이 발생하므로 조금 붙어 있습니다 ...
어떤 아이디어?