/// <summary> /// Creates the specified BDC type. /// </summary> /// <param name="type">The type.</param> /// <param name="args">The args.</param> /// <returns></returns> public IBusinessDomainComponent Create(BDCType type, params object[] args) { // get attribute value QualifiedTypeNameAttribute QualifiedNameAttr = EnumAttributeUtility <BDCType, QualifiedTypeNameAttribute> .GetEnumAttribute(type.ToString()); // create instance return((IBusinessDomainComponent)this.CreateObjectInstance(QualifiedNameAttr.AssemblyFileName, QualifiedNameAttr.QualifiedTypeName, args)); }
/// <summary> /// Determines whether the specified attr is valid. /// </summary> /// <param name="attribute">The attr.</param> /// <returns> /// <c>true</c> if the specified attr is valid; otherwise, <c>false</c>. /// </returns> public static bool IsValid(QualifiedTypeNameAttribute attribute) { return(attribute != null && !ValidatorUtility.IsNullOrEmpty(attribute.AssemblyFileName) && !ValidatorUtility.IsNullOrEmpty(attribute.QualifiedTypeName)); }