Inheritance: System.Data.Objects.DataClasses.EntityObject
Esempio n. 1
0
 public AthleteClassModel(AthleteClass athleteClass)
 {
     Id = athleteClass.ID;
     Name = athleteClass.Name;
 }
Esempio n. 2
0
 private void updateProperties(AthleteClass athleteClass)
 {
     athleteClass.Name = Name;
 }
Esempio n. 3
0
 private static void saveDbEntry(AthleteClass athleteClassDb)
 {
     entitiesStatic.AthleteClasses.AddObject(athleteClassDb);
     entitiesStatic.SaveChanges();
 }
Esempio n. 4
0
        private static AthleteClass createDbEntry(string name)
        {
            AthleteClass athleteClassDb = new AthleteClass();
            athleteClassDb.Name = name;
            saveDbEntry(athleteClassDb);

            return athleteClassDb;
        }
Esempio n. 5
0
 /// <summary>
 /// Create a new AthleteClass object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static AthleteClass CreateAthleteClass(global::System.Int32 id)
 {
     AthleteClass athleteClass = new AthleteClass();
     athleteClass.ID = id;
     return athleteClass;
 }
Esempio n. 6
0
 /// <summary>
 /// Deprecated Method for adding a new object to the AthleteClasses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAthleteClasses(AthleteClass athleteClass)
 {
     base.AddObject("AthleteClasses", athleteClass);
 }