コード例 #1
0
 /// <summary>
 /// Returns a value indicating whether the day exists.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="ctx">The entity container.</param>
 /// <returns>The day exists.</returns>
 public bool DayExists(Guid id, BzsEntityContainer ctx)
 {
     return ctx.DaySet.Any(f => f.Id == id);
 }
コード例 #2
0
 /// <summary>
 /// Returns a value indicating whether the room exists.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="ctx">The entity container.</param>
 /// <returns>The room exists.</returns>
 public bool RoomExists(Guid id, BzsEntityContainer ctx)
 {
     return ctx.RoomSet.Any(f => f.Id == id);
 }
コード例 #3
0
 /// <summary>
 /// Returns a value indicating whether the teacher exists.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="ctx">The entity container.</param>
 /// <returns>The teacher exists.</returns>
 public bool TeacherExists(Guid id, BzsEntityContainer ctx)
 {
     return ctx.TeacherSet.Any(f => f.Id == id);
 }