Ejemplo n.º 1
0
 public static void Merge(this T_E_Deployement iEntity, Deployement iObj)
 {
     iEntity.DeployementDate           = iObj.DeployementDate;
     iEntity.DeployementId             = iObj.DeployementId;
     iEntity.EnvironmentDestinationRef = (short)iObj.EnvironmentDestination;
     iEntity.PackageId = iObj.PackageId;
 }
        public long AddDeployement(Deployement iDeployement)
        {
            var newEntity = new T_E_Deployement();

            newEntity.Merge(iDeployement);
            return(DBReleaseDataService.AddDeployement(newEntity));
        }
Ejemplo n.º 3
0
        public static Deployement Convert(this T_E_Deployement iEntity)
        {
            if (iEntity == null)
            {
                return(null);
            }

            return(new Deployement
            {
                DeployementDate = iEntity.DeployementDate,
                DeployementId = iEntity.DeployementId,
                EnvironmentDestination = (EnvironmentEnum)iEntity.EnvironmentDestinationRef,
                PackageId = iEntity.PackageId,
            });
        }