I am using LLBLGen Pro
Version: 5.11 (5.11.2) RTM
SD.LLBLGen.Pro.DQE.PostgreSql : 5.11.1
SD.LLBLGen.Pro.ORMSupportClasses : 5.11.1
In a Target Per Entity project, when saving an entity (see the CODE block below) I am receiving the following error (see the EXCEPTION below):
Seems that is trying to query the parent table:
- using: "public.my_party"
- instead of: "public"."my_party" which is what Postgresql uses
CODE:
using (var db = new DataAccessAdapter(cn))
{
var org = new MyOrganizationEntity();
org.Subtype = "O";
org.CreatedBy = "dchang";
org.CreatedOn = DateTime.Now;
org.CreditRatingTypeId = 1;
org.Name = "Changsoft, LLC";
org.OrganizationSubtype = 1;
db.SaveEntity(org);
}
EXCEPTION:
SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException
HResult=0x80131500
Message=An exception was caught during the execution of an action query: 42P01: relation "public.my_party" does not exist
POSITION: 13. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
Source=SD.LLBLGen.Pro.ORMSupportClasses
StackTrace:
at SD.LLBLGen.Pro.ORMSupportClasses.ActionQuery.Execute()
at SD.LLBLGen.Pro.ORMSupportClasses.BatchActionQuery.Execute()
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterCore.ExecuteActionQuery(IActionQuery queryToExecute)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterCore.<PersistQueue>b__57_0(IActionQuery q)
at SD.LLBLGen.Pro.ORMSupportClasses.ActionQueryController.ExecuteElements(List`1 elementsToRun)
at SD.LLBLGen.Pro.ORMSupportClasses.ActionQueryController.Execute(ActionQueueElement`1 actionQueueElement, IActionQuery query, Type typeOfNextElement)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterCore.PersistQueue(List`1 queueToPersist, Boolean insertActions)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterCore.SaveEntity(IEntity2 entityToSave, Boolean refetchAfterSave, IPredicateExpression updateRestriction, Boolean recurse)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.<>n__18(IEntity2 entityToSave, Boolean refetchAfterSave, IPredicateExpression updateRestriction, Boolean recurse)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.<>c__DisplayClass19_0.<SaveEntity>b__0()
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.ExecuteWithActiveRecoveryStrategy[T](Func`1 toExecute)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.SaveEntity(IEntity2 entityToSave, Boolean refetchAfterSave, IPredicateExpression updateRestriction, Boolean recurse)
at SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterCore.SaveEntity(IEntity2 entityToSave)
at DataAccessTest.Tests.Test1() in F:\Changsoft\src\tests\unit\dataaccess\DataAccessTest\UnitTest1.cs:line 32
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
PostgresException: 42P01: relation "public.my_party" does not exist
POSITION: 13
Attachments
Filename |
File size |
Added on |
Approval |
Model.png
|
20,548 |
30-Mar-2024 08:57.10 |
Approved |