partial         void AddDetailsToEntity(Location entity, DateTime startDate, DateTime endDate)
        {
            var locationType = "LocationType" + new Guid();
            this.repository.Add(
                new MDM.ReferenceData() { Key = "LocationType", Value = "LoctionType" + Guid.NewGuid() });
            this.repository.Flush();

            var locationDetails = new Location { Name = Guid.NewGuid().ToString(), Type = locationType };

            locationDetails.Validity = new DateRange(startDate, endDate);
            entity.AddDetails(locationDetails);
        }
Ejemplo n.º 2
0
        partial void AddDetailsToEntity(Location entity, DateTime startDate, DateTime endDate)
        {
            var locationType = "LocationType" + new Guid();

            this.repository.Add(
                new MDM.ReferenceData()
            {
                Key = "LocationType", Value = "LoctionType" + Guid.NewGuid()
            });
            this.repository.Flush();

            var locationDetails = new Location {
                Name = Guid.NewGuid().ToString(), Type = locationType
            };

            locationDetails.Validity = new DateRange(startDate, endDate);
            entity.AddDetails(locationDetails);
        }