public Class GetClassById(int classId)
        {
            var compClass = new Class();

            using (var connection = new EntityConnection("name=CoreContainer"))
            {
                _core = new CoreContainer(connection);

                compClass = _core.Classes.Where(c => c.ClassId == classId).Single();
            }

            return compClass;
        }
 /// <summary>
 /// Create a new Class object.
 /// </summary>
 /// <param name="classId">Initial value of the ClassId property.</param>
 /// <param name="displayOrder">Initial value of the DisplayOrder property.</param>
 public static Class CreateClass(global::System.Int32 classId, global::System.Int32 displayOrder)
 {
     Class @class = new Class();
     @class.ClassId = classId;
     @class.DisplayOrder = displayOrder;
     return @class;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Classes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToClasses(Class @class)
 {
     base.AddObject("Classes", @class);
 }