Exemplo n.º 1
0
 private static void LaneSidePopulate(FlyballDbContext context)
 {
     foreach (var lane in LaneSide.List())
     {
         var val = context.Lane.FirstOrDefault(x => x.Name == lane.Name);
         if (val == null)
         {
             context.Lane.Add(lane);
         }
     }
 }
Exemplo n.º 2
0
 public CarState(Int32 id, LaneSide lane, Int32 speed, Int32 position)
 {
     this.ID = id;
     this.Lane = lane;
     this.Speed = speed;
     this.Position = position;
 }