Has anyone much experience in doing this? We have a legacy application which is written in ASP and although were gradually migrating pages to ASP.NET, this is a huge task.
On some ASP pages it would be more productive to simply keep the existing ASP code however I would like to use generated LLBLGen entities ( currently it uses far too much inline SQL ).
Has anyone used LLBLGen through COM, modified the generated code using the templates or find any specific issues? Obviously COM clients not being able to call overloaded constructors need to be worked around so we can load entities from primary key values e.g. using the public constructor and calling another method to load the object.
It is usually best practice when developing .NET components to be callable by COM clients to use various attributes such as ClassInterface to specify the class uses a specific interface for the COM definition exposed. e.g.
[Guid("45AC1550-E7B9-4a71-9506-6537BCC44F31")]
[ClassInterface(ClassInterfaceType.None)]
public class PurchaseOrder : IPurchaseOrder
Alternatively we could build LLBLGen COM interop helper methods which take a specific object value as the constructor and pass this into it to allow COM clients to easily create objects using the overloaded constructors e.g.
Dim oEntityCreator
Set oEntityCreator = CreateObject("LLBLGenEntityCreator")
Dim oPurchaseOrder
Set oPurchaseOrder = oEntityCreator.CreateForID("DataAccess.PurchaseOrder", lOrderId)
In this way the prog id of the entity is specified together with the entity identifier.
Thoughts?