Ejemplo n.º 1
0
 /// <summary>
 /// Gets the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public override MutualFund Get(int value)
 {
     using (var ctx = new MervalitoContext())
     {
         var entry = ctx.Set <MutualFund>().Find(value);
         ctx.Entry(entry).Reference(t => t.Currency).Load();
         ctx.Entry(entry).Reference(t => t.CompanyManager).Load();
         ctx.Entry(entry).Reference(t => t.InvestmentHorizon).Load();
         return(entry);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public override Title Get(int value)
 {
     using (var ctx = new MervalitoContext())
     {
         var entry = ctx.Set <Title>().Find(value);
         ctx.Entry(entry).Reference(t => t.BondType).Load();
         ctx.Entry(entry).Reference(t => t.RentType).Load();
         ctx.Entry(entry).Reference(t => t.PaymentPeriod).Load();
         ctx.Entry(entry).Reference(t => t.Currency).Load();
         ctx.Entry(entry).Reference(t => t.TitleType).Load();
         return(entry);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public override Caution Get(int value)
 {
     using (var ctx = new MervalitoContext())
     {
         var entry = ctx.Set <Caution>().Find(value);
         ctx.Entry(entry).Reference(t => t.Currency).Load();
         return(entry);
     }
 }