I have the following classes :
public abstract class Repository<TEntity, TIdentifier> : IRepository<TEntity, TIdentifier> where TEntity : class
{ --- }
public abstract class BaseBusinessObject<TEntity, TIdentifier> : Repository<TEntity, TIdentifier> where TEntity : class
{ --- }
public class AttachmentBusinessObject : BaseBusinessObject<Attachment, long>
{ --- }
Somewhere, The only things that I have are "AttachmentBusinessObject" in string and "Attachment" as TEntity
in string.
How can I create an instance of BaseBusinessObject
or AttachmentBusinessObject
?