Hi,
I added a table to my entities and let LLBLGen Pro create the code like always. When I tried to use the code, the "delete"-command didn't work. I looked into the created code and found this:
...
/// <summary> Refetches the Entity from the persistent storage. Refetch is used to re-load an Entity which is marked "Out-of-sync", due to a save action. Refetching an empty Entity has no effect.
/// Because this entity doesn't have a primary key defined, this routine does nothing. </summary>
/// <returns>true</returns>
public override bool Refetch()
{
return true;
}
/// <summary> Deletes the Entity from the persistent storage. This method succeeds also when the Entity is not present.</summary>
/// <param name="deleteRestriction">Predicate expression, meant for concurrency checks in a delete query. Overrules the predicate returned by a set ConcurrencyPredicateFactory object.</param>
/// <returns>true if Delete succeeded, false otherwise</returns>
public override bool Delete(IPredicate deleteRestriction)
{
return true;
}
/// <summary> Performs the update action of an existing Entity to the persistent storage. Because this entity doesn't have a primary key defined, this routine does nothing. </summary>
/// <returns>true</returns>
protected override bool UpdateEntity()
{
return true;
}
/// <summary> Performs the update action of an existing Entity to the persistent storage. Because this entity doesn't have a primary key defined, this routine does nothing. </summary>
/// <param name="updateRestriction">Predicate expression, meant for concurrency checks in an Update query</param>
/// <returns>true</returns>
protected override bool UpdateEntity(IPredicate updateRestriction)
{
return true;
}
...
There's only a "return true" where i expected code like in the other created classe. Why?
Thanks in advance!