public static IEntity CreateEntity(string name, TaskInvocationInfo taskInvocationInfo, Dictionary <string, List <string> > reportPropertyCmdletParamsMap, IReportAnnotation annotation) { CreateEntityDelegate @delegate = DependencyFactory.GetDelegate <CreateEntityDelegate>(); if (@delegate != null) { return(@delegate(name, taskInvocationInfo, reportPropertyCmdletParamsMap, annotation)); } return(new Entity(name, taskInvocationInfo, reportPropertyCmdletParamsMap, annotation)); }
public UInt64 DBID = 0; //id of this entity in database, or null if not inserted in a db public static void Register(string entname, CreateEntityDelegate createfunc) { EntityCreateFuncs.Add(entname, createfunc); }