public static EntityControl CreateEntityControl(string AssemblyName) { if (entity == null) { lock (padlock) { if (entity == null) { entity = new EntityControl(); entity._AssemblyName = AssemblyName; } } } return(entity); }
public DALBase() { //control = EntityControl.CreateEntityControl("WebCX.Model"); control = EntityControl.CreateEntityControl(Common.NHelper.AssemblyName); }