0
Visual Studio Entity Framework PowerTools를 사용하여 엔지니어 코드를 리버스 엔지니어링했습니다. 기존 데이터베이스의 첫 번째 모델 개체. 이 같은 뭔가 결국 :리포지토리 패턴과 함께 사용하려는 경우 엔티티 프레임 워크 코드 첫 번째 모델에서 참조 된 엔터티 속성을 삭제합니까?
namespace PoolVAEFModel.Models
{
public class Pool
{
public Pool()
{
this.PoolWaterMetrics = new List<PoolWaterMetric>();
this.PoolWaterQualities = new List<PoolWaterQuality>();
}
public int Id { get; set; }
public string Symbol { get; set; }
public int WaterCapacityMax { get; set; }
public int WaterCapacityMin { get; set; }
public int WaterCapacityRegular { get; set; }
public string WallMaterial { get; set; }
public bool IsAboveGroundPool { get; set; }
public string ContactPhone { get; set; }
public string ContactEmail { get; set; }
public string SanitationMethod { get; set; }
public string LocationAddress { get; set; }
public bool HasHotTop { get; set; }
public bool JustHotTop { get; set; }
public int WaterCapacityUnitId { get; set; }
public double WaterDepthMax { get; set; }
public double WaterDepthMin { get; set; }
public int WaterDepthUnitId { get; set; }
public virtual Unit Unit { get; set; }
public virtual Unit Unit1 { get; set; }
public virtual ICollection<PoolWaterMetric> PoolWaterMetrics { get; set; }
public virtual ICollection<PoolWaterQuality> PoolWaterQualities { get; set; }
}
}
내가 데이터베이스 계층 추상적로 저장소 패턴을 사용하고자하고, 예를 들어 참조 된 개체로 무엇을 궁금 해서요
public virtual ICollection<PoolWaterMetric> PoolWaterMetrics { get; set; }
public virtual ICollection<PoolWaterQuality> PoolWaterQualities { get; set; }
난 그냥 내 클래스 파일에서 제거 그냥 간단한 속성을 유지합니까?