public Analytic( AnalyticIdentity identity ) { Id = 0; Identity = identity; }
public Analytic( int id, AnalyticIdentity identity ) { Id = id; Identity = identity; }
public Analytic( int id, string searchGroupKey, AnalyticIdentity identity ) { Id = id; SearchGroupKey = searchGroupKey; Identity = identity; }
public Analytic( int id, int searchGroupId, AnalyticIdentity identity ) { Id = id; SearchGroupId = searchGroupId; Identity = identity; }
public Analytic( int id, int searchGroupId, string searchGroupKey, AnalyticIdentity identity, List <AnalyticValueDriver> valueDrivers, List <AnalyticPriceListGroup> priceListGroups, List <FilterGroup> filterGroups ) { Id = id; SearchGroupId = searchGroupId; SearchGroupKey = searchGroupKey; Identity = identity; ValueDrivers = valueDrivers; PriceListGroups = priceListGroups; FilterGroups = filterGroups; }
public static DTO.AnalyticIdentity ToDto(this Display.AnalyticIdentity displayEntity) { var dto = new DTO.AnalyticIdentity( displayEntity.Name, displayEntity.Description, displayEntity.Notes, displayEntity.RefreshedText, displayEntity.CreatedText, displayEntity.EditedText, displayEntity.Refreshed, displayEntity.Created, displayEntity.Edited, displayEntity.Author, displayEntity.Editor, displayEntity.Owner, displayEntity.Shared, displayEntity.IsActive); return(dto); }
public static Display.AnalyticIdentity ToDisplayEntity(this DTO.AnalyticIdentity dto) { var displayEntity = new Display.AnalyticIdentity(); displayEntity.Name = dto.Name; displayEntity.Description = dto.Description; displayEntity.Notes = dto.Notes; displayEntity.RefreshedText = dto.RefreshedText; displayEntity.CreatedText = dto.CreatedText; displayEntity.EditedText = dto.EditedText; displayEntity.Refreshed = dto.Refreshed; displayEntity.Created = dto.Created; displayEntity.Edited = dto.Edited; displayEntity.Author = dto.Author; displayEntity.Editor = dto.Editor; displayEntity.Owner = dto.Owner; displayEntity.Active = dto.Active; displayEntity.Shared = dto.Shared; return(displayEntity); }
public static DTO.Analytic ToDto(this Display.Analytic displayEntity) { DTO.AnalyticIdentity identity = displayEntity.Identity.ToDto(); var filterGroups = new List <DTO.FilterGroup>(); foreach (Display.FilterGroup filterGroup in displayEntity.FilterGroups) { filterGroups.Add(filterGroup.ToDto()); } var drivers = new List <DTO.AnalyticValueDriver>(); foreach (Display.AnalyticValueDriver driver in displayEntity.ValueDrivers) { drivers.Add(driver.ToDto()); } var priceListGroups = new List <DTO.AnalyticPriceListGroup>(); foreach (Display.AnalyticPriceListGroup priceListGroup in displayEntity.PriceListGroups) { priceListGroups.Add(priceListGroup.ToDto()); } var dto = new DTO.Analytic( displayEntity.Id, displayEntity.SearchId, displayEntity.SearchGroupKey, identity, drivers, priceListGroups, filterGroups); return(dto); }