public Player(string name, System.DateTime birthDate, NeoDatis.Odb.Test.Tutorial.Sport favoriteSport) { this.name = name; this.birthDate = birthDate; this.favoriteSport = favoriteSport; }
public Player(string name, System.DateTime birthDate, NeoDatis.Odb.Test.Tutorial.Sport favoriteSport) { this.name = name; this.birthDate = birthDate; this.favoriteSport = favoriteSport; }
public Game(System.DateTime when, NeoDatis.Odb.Test.Tutorial.Sport sport, NeoDatis.Odb.Test.Tutorial.Team team1, NeoDatis.Odb.Test.Tutorial.Team team2) { this.when = when; this.sport = sport; this.team1 = team1; this.team2 = team2; }
public Game(System.DateTime when, NeoDatis.Odb.Test.Tutorial.Sport sport, NeoDatis.Odb.Test.Tutorial.Team team1, NeoDatis.Odb.Test.Tutorial.Team team2) { this.when = when; this.sport = sport; this.team1 = team1; this.team2 = team2; }
/// <exception cref="System.Exception"></exception> public virtual void Step20() { // Create instance NeoDatis.Odb.Test.Tutorial.Sport sport = new NeoDatis.Odb.Test.Tutorial.Sport("volley-ball" ); NeoDatis.Odb.ODB odb = null; NeoDatis.Odb.ODBServer server = null; try { // Creates the server on port 8000 server = OpenServer(8000); // Tells the server to manage base 'base1' that points to the file // tutorial2.odb server.AddBase("base1", OdbName); // Then starts the server to run in background server.StartServer(true); // Open the databse client on the localhost on port 8000 and specify // which database instance odb = OpenClient("localhost", 8000, "base1"); // Store the object odb.Store(sport); } finally { if (odb != null) { // First close the client odb.Close(); } if (server != null) { // Then close the database server server.Close(); } } }
/// <exception cref="System.Exception"></exception> public virtual void Step20() { // Create instance NeoDatis.Odb.Test.Tutorial.Sport sport = new NeoDatis.Odb.Test.Tutorial.Sport("volley-ball" ); NeoDatis.Odb.ODB odb = null; NeoDatis.Odb.ODBServer server = null; try { // Creates the server on port 8000 server = OpenServer(8000); // Tells the server to manage base 'base1' that points to the file // tutorial2.odb server.AddBase("base1", OdbName); // Then starts the server to run in background server.StartServer(true); // Open the databse client on the localhost on port 8000 and specify // which database instance odb = OpenClient("localhost", 8000, "base1"); // Store the object odb.Store(sport); } finally { if (odb != null) { // First close the client odb.Close(); } if (server != null) { // Then close the database server server.Close(); } } }
public virtual void SetSport(NeoDatis.Odb.Test.Tutorial.Sport sport) { this.sport = sport; }
public virtual void SetSport(NeoDatis.Odb.Test.Tutorial.Sport sport) { this.sport = sport; }
public virtual void SetFavoriteSport(NeoDatis.Odb.Test.Tutorial.Sport favoriteSport ) { this.favoriteSport = favoriteSport; }
public virtual void SetFavoriteSport(NeoDatis.Odb.Test.Tutorial.Sport favoriteSport ) { this.favoriteSport = favoriteSport; }