Ejemplo n.º 1
0
 public Player(string name, System.DateTime birthDate, NeoDatis.Odb.Test.Tutorial.Sport
               favoriteSport)
 {
     this.name          = name;
     this.birthDate     = birthDate;
     this.favoriteSport = favoriteSport;
 }
Ejemplo n.º 2
0
		public Player(string name, System.DateTime birthDate, NeoDatis.Odb.Test.Tutorial.Sport
			 favoriteSport)
		{
			this.name = name;
			this.birthDate = birthDate;
			this.favoriteSport = favoriteSport;
		}
Ejemplo n.º 3
0
		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;
		}
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
		/// <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();
				}
			}
		}
Ejemplo n.º 6
0
 /// <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();
         }
     }
 }
Ejemplo n.º 7
0
		public virtual void SetSport(NeoDatis.Odb.Test.Tutorial.Sport sport)
		{
			this.sport = sport;
		}
Ejemplo n.º 8
0
 public virtual void SetSport(NeoDatis.Odb.Test.Tutorial.Sport sport)
 {
     this.sport = sport;
 }
Ejemplo n.º 9
0
 public virtual void SetFavoriteSport(NeoDatis.Odb.Test.Tutorial.Sport favoriteSport
                                      )
 {
     this.favoriteSport = favoriteSport;
 }
Ejemplo n.º 10
0
		public virtual void SetFavoriteSport(NeoDatis.Odb.Test.Tutorial.Sport favoriteSport
			)
		{
			this.favoriteSport = favoriteSport;
		}