/// <summary> /// Creates the specified DAC type. /// </summary> /// <param name="type">The DAC type.</param> /// <param name="args">The args.</param> /// <returns></returns> public IDataAccessComponent Create(DACType type, params object[] args) { // get attribuye value QualifiedTypeNameAttribute QualifiedNameAttr = EnumAttributeUtility<DACType, QualifiedTypeNameAttribute>.GetEnumAttribute(type.ToString()); // create instance return (IDataAccessComponent)this.CreateObjectInstance(QualifiedNameAttr.AssemblyFileName, QualifiedNameAttr.QualifiedTypeName, args); }
/// <summary> /// Creates the specified DAC type. /// </summary> /// <param name="type">The DAC type.</param> /// <param name="args">The args.</param> /// <returns></returns> public IDataAccessComponent Create(DACType type, params object[] args) { // get attribuye value QualifiedTypeNameAttribute QualifiedNameAttr = EnumAttributeUtility <DACType, QualifiedTypeNameAttribute> .GetEnumAttribute(type.ToString()); // create instance return((IDataAccessComponent)this.CreateObjectInstance(QualifiedNameAttr.AssemblyFileName, QualifiedNameAttr.QualifiedTypeName, args)); }
/// <summary> /// Initializes a new instance of the <see cref="DACBase"/> class. /// </summary> /// <param name="dacType">Type of the dac.</param> protected DACBase(DACType dacType) { this.Type = dacType; }