public DTOClassProperty(string navigationPropertyNameEDMX, EntityNavigationProperty navProperty, bool isServiceReady) : this(isServiceReady) { // Set PropertyType this.PropertyType = navProperty.Type; // Set PropertyName this.PropertyNameEDMX = navigationPropertyNameEDMX; this.PropertyName = navProperty.Name; // Set IsNavigation this.IsNavigation = true; // Set NavigatesToDTOName this.NavigatesToDTOName = navProperty.DTOTargetName; // Set IsList this.IsList = navProperty.IsList; // Set ListOf if (this.IsList) { this.ListOf = navProperty.ListOf; } else { this.ListOf = this.PropertyType; } }