Correct way to use PetaPoco in DAL layer (ASP.NET Web Forms VB.NET)
问题 I'm trying to generate my DAL layer for ASP.NET web forms project using PetaPoco. Namespace Eva.Dal.Polls Public Partial Class EVAMOD_PL_CategoryDb Private db As Eva.Dal.Core.EvaDb Public Function Insert(a As EVAMOD_PL_Category) As Object Return db.Insert(a) End Function Public Sub New() db = New Eva.Dal.Core.EvaDb End Sub End Class Public Partial Class EVAMOD_PL_GL_CategoryDb Private db As Eva.Dal.Core.EvaDb Public Function Insert(a As EVAMOD_PL_GL_Category) As Object Return db.Insert(a) End