IConcurrencyPredicateFactory

Posts   
 
    
sdhanas
User
Posts: 2
Joined: 06-Apr-2010
# Posted on: 04-May-2010 23:54:11   

I have following code that was generated by the LLBLGEN project. Unfortunately, the LLBLGEN project file wasn't checked into the Source control by the previous developer , who worked on it. I would appreciate if you could help me to fix the LLBLGEN project, so that I can generate the following code.

Thanks, Santhi


using System; using System.Collections.Generic; using System.Text;

using SD.LLBLGen.Pro.ORMSupportClasses;

using ABS.Data.EntityClasses; using ABS.Data.HelperClasses;

namespace ABS.Data.FactoryClasses { public class TransactionDetailConcurrencyFactory : IConcurrencyPredicateFactory { #region IConcurrencyPredicateFactory Members

    public IPredicateExpression CreatePredicate(ConcurrencyPredicateType predicateTypeToCreate, object containingEntity)
    {
        IPredicateExpression predicate = new PredicateExpression();
        TransactionDetailEntity detail = containingEntity as TransactionDetailEntity;

        switch (predicateTypeToCreate)
        {
            case ConcurrencyPredicateType.Save:
                predicate.Add(TransactionDetailFields.LastChanged == detail.LastChanged);
                break;
        }

        return predicate;
    }

    #endregion
}

}

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-May-2010 06:28:04   

Hi Santhi,

I don't understand 100% what you want. The code you posted wasn't generated by LLBLGen, it was written by a human using LLBLGen framework, the code implements IPredicateFactory for updates on TransactionDetail entities.

I don't understand the part when you mention the source control and the need to fix the LLBLGen project. Please elaborate more.

David Elizondo | LLBLGen Support Team
sdhanas
User
Posts: 2
Joined: 06-Apr-2010
# Posted on: 05-May-2010 23:12:30   

Thank you, Daelmo. I was in the assumption, that the code was generated by the LLBLGEN project. I wasn't aware that the code was written by the developer. My main concern is that, we have couple of additional files, that is not generated by LLBLGEN, which needs to be managed separately.

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 06-May-2010 10:07:29   

My main concern is that, we have couple of additional files, that is not generated by LLBLGEN, which needs to be managed separately.

Still it's not clear what the problem is, and how we can help you.