示例#1
0
        public static BaseAssemblyMetadata MapToBase(DBAssemblyModel assemblyMetadata)
        {
            Dictionares.ResetDictonaries();

            BaseAssemblyMetadata assemblyModel = new BaseAssemblyMetadata
            {
                AssemblyName = assemblyMetadata.Name,
                Namespaces   = from DBNamespaceModel _namespace in assemblyMetadata.NamespacesL
                               select DBNamespaceMapper.MapToBase(_namespace)
            };

            return(assemblyModel);
        }
示例#2
0
        public static DBAssemblyModel MapToDB(BaseAssemblyMetadata assemblyMetadata)
        {
            Dictionares.ResetDictonaries();

            DBAssemblyModel assemblyModel = new DBAssemblyModel
            {
                Name       = assemblyMetadata.AssemblyName,
                Namespaces = from BaseNamespaceMetadata _namespaces in assemblyMetadata.Namespaces
                             select DBNamespaceMapper.MapToDB(_namespaces)
            };

            assemblyModel.SetValues();
            return(assemblyModel);
        }