Пример #1
0
        private void RegisterShapeEntityType(ShapeType shapeType, bool create)
        {
            int         version    = FindLibraryVersion(shapeType.LibraryName, create);
            IEntityType entityType = new EntityType(shapeType.FullName, EntityCategory.Shape,
                                                    version, () => shapeType.CreateInstanceForLoading(), shapeType.GetPropertyDefinitions(version));

            repository.AddEntityType(entityType);
        }