Exemplo n.º 1
0
 public bool Equals(ILibModuleInfo other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ModuleGuid == other.ModuleGuid);
 }
Exemplo n.º 2
0
        public DataResult <int> CreateDynamicModule(
            DynamicModuleModel dynamicModuleModel,
            ILibModuleInfo dynamicModuleInfo
            )
        {
            var dynamicModuleEntity = new DynamicModuleEntity
            {
                ModuleGuid           = dynamicModuleModel.ModuleGuid,
                Name                 = dynamicModuleModel.Name,
                ConfigurationVersion = dynamicModuleInfo.Version
            };

            try
            {
                var result = m_dynamicModuleUoW.CreateDynamicModule(dynamicModuleEntity);
                return(Success(result));
            }
            catch (DatabaseException e)
            {
                m_logger.LogWarning(e);
                return(Error <int>(e.Message));
            }
        }