Exemplo n.º 1
0
        public DependencyBase GetDependencyBase()
        {
            DependencyBase res = new DependencyBase();

            res.DependencyId       = DependencyId;
            res.ComponentHistoryId = ComponentHistoryId;
            res.FullName           = FullName;
            res.Version            = Version;
            res.VersionNormalized  = VersionNormalized;
            res.Name = Name;
            res.DepComponentHistoryId = DepComponentHistoryId;
            return(res);
        }
Exemplo n.º 2
0
        public void ReadDependencyBase(DependencyBase dependency)
        {
            if (dependency.DependencyId > -1)
            {
                DependencyId = dependency.DependencyId;
            }

            if (dependency.ComponentHistoryId > -1)
            {
                ComponentHistoryId = dependency.ComponentHistoryId;
            }

            if (!String.IsNullOrEmpty(dependency.FullName))
            {
                FullName = dependency.FullName;
            }

            if (!String.IsNullOrEmpty(dependency.Version))
            {
                Version = dependency.Version;
            }

            if (!String.IsNullOrEmpty(dependency.VersionNormalized))
            {
                VersionNormalized = dependency.VersionNormalized;
            }

            if (!String.IsNullOrEmpty(dependency.Name))
            {
                Name = dependency.Name;
            }

            if (dependency.DepComponentHistoryId > -1)
            {
                DepComponentHistoryId = dependency.DepComponentHistoryId;
            }
        }