Hi,
I need to write an import for an existing application.
I have an ascii file with data:
FirstName,LastName
FistName2,Lastname2
I have an entity: Employee, and want to create 2 employees with the data from the ascii file.
the problem is: In the BL part of the application I fill an object with the ID of a field: ex (Field: ExternalID there from the id : 5 ). I got the id from some HelperClasses generated by LLBLGen.
I can't add an EntityField2 because this is BL part of application and does not know anything of the DB.
**EDIT: This is not exactly correct, The BL knows all about DB, but my object in the BL inherits from an interface in a different project, and there is now knowledge about anything concerning LLBLGen/DB **
the existing creating code of an employee needs the Field ex(EmployeeFields.FirstName) & (EmployeeFields.LastName) and value, I have to put it in a sorted list and give it to the function.
So I have the ID from the IEntityField2 and the type of Entity. Is there any dynamic way to create the IEntityField2 from its id?
Because later on it's not only firstName, lastname but also other fields (address,mail, .....)
Greetz
Jonathan