protected internal void EnsureData() { base.Name = Name; if (Entity != null && Entity.BaseEntity != null && Entity.BaseEntity.AutoInterface) { if (m_baseInterfaceTypeReference != null) { BaseTypes.Remove(m_baseInterfaceTypeReference); } m_baseInterfaceTypeReference = new CodeTypeReference(new WXMLCodeDomGeneratorNameHelper(_settings).GetEntityInterfaceName(Entity.BaseEntity, NamePrefix, NameSuffix, true)); BaseTypes.Add(m_baseInterfaceTypeReference); } }