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); } } }
public CarState(Int32 id, LaneSide lane, Int32 speed, Int32 position) { this.ID = id; this.Lane = lane; this.Speed = speed; this.Position = position; }