Пример #1
0
        public static EntityType ToEntityType(this AppType appType)
        {
            var entityType = new EntityType()
            {
                FileIdentity = appType.FileIdentity.Value,
                FilePath     = appType.FilePath.Value,
                FileFormat   = appType.FileFormat,
            };

            return(entityType);
        }
Пример #2
0
        public static AppType ToAppType(this EntityType entityType)
        {
            var appType = new AppType()
            {
                FileIdentity = new FileIdentity(entityType.FileIdentity),
                FilePath     = new FilePath(entityType.FilePath),
                FileFormat   = entityType.FileFormat,
            };

            return(appType);
        }