Update of /cvsroot/springnet/Spring.Net/examples/Spring/SpringAir/src/SpringAir.Data.Ado/Data/Ado
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23553
Modified Files:
AircraftDao.cs AirportDao.cs
Log Message:
comment out pre-build event for anltr since it is not shipped in end user distribution
remove SlidingExpiration and Priority from Cache attributes in SpringAir
change TimeToLive value in SpringAir from int to string
update docs on TimeToLive string value for cache aspect.
Index: AirportDao.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/SpringAir/src/SpringAir.Data.Ado/Data/Ado/AirportDao.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** AirportDao.cs 3 Aug 2007 20:28:47 -0000 1.12
--- AirportDao.cs 11 Oct 2007 17:59:21 -0000 1.13
***************
*** 53,59 ****
/// <see cref="SpringAir.Domain.AirportCollection"/> (but never <cref lang="null"/>).
/// </returns>
! [CacheResult("AspNetCache", "'Airports'", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
! [CacheResultItems("AspNetCache", "'Airport.Id=' + Id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
! [CacheResultItems("AspNetCache", "'Airport.Code=' + Code", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public AirportCollection GetAllAirports()
{
--- 53,59 ----
/// <see cref="SpringAir.Domain.AirportCollection"/> (but never <cref lang="null"/>).
/// </returns>
! [CacheResult("AspNetCache", "'Airports'", TimeToLive = "0:1:0")]
! [CacheResultItems("AspNetCache", "'Airport.Id=' + Id", TimeToLive = "0:1:0")]
! [CacheResultItems("AspNetCache", "'Airport.Code=' + Code", TimeToLive = "0:1:0")]
public AirportCollection GetAllAirports()
{
***************
*** 83,87 ****
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Id=' + #id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public Airport GetAirport(long id)
{
--- 83,87 ----
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Id=' + #id", TimeToLive = "0:1:0")]
public Airport GetAirport(long id)
{
***************
*** 105,109 ****
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Code=' + #code", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public Airport GetAirport(string code)
{
--- 105,109 ----
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Code=' + #code", TimeToLive = "0:1:0")]
public Airport GetAirport(string code)
{
***************
*** 159,165 ****
/// <see cref="SpringAir.Domain.AirportCollection"/> (but never <cref lang="null"/>).
/// </returns>
! [CacheResult("AspNetCache", "'Airports'", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
! [CacheResultItems("AspNetCache", "'Airport.Id=' + Id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
! [CacheResultItems("AspNetCache", "'Airport.Code=' + Code", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public AirportCollection GetAllAirports()
{
--- 159,165 ----
/// <see cref="SpringAir.Domain.AirportCollection"/> (but never <cref lang="null"/>).
/// </returns>
! [CacheResult("AspNetCache", "'Airports'", TimeToLive = "0:1:0")]
! [CacheResultItems("AspNetCache", "'Airport.Id=' + Id", TimeToLive = "0:1:0")]
! [CacheResultItems("AspNetCache", "'Airport.Code=' + Code", TimeToLive = "0:1:0")]
public AirportCollection GetAllAirports()
{
***************
*** 179,183 ****
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Id=' +#id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public Airport GetAirport(long id)
{
--- 179,183 ----
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Id=' +#id", TimeToLive = "0:1:0")]
public Airport GetAirport(long id)
{
***************
*** 197,201 ****
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Code=' +#code", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public Airport GetAirport(string code)
{
--- 197,201 ----
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Airport.Code=' +#code", TimeToLive = "0:1:0")]
public Airport GetAirport(string code)
{
Index: AircraftDao.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/SpringAir/src/SpringAir.Data.Ado/Data/Ado/AircraftDao.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** AircraftDao.cs 3 Aug 2007 20:28:47 -0000 1.9
--- AircraftDao.cs 11 Oct 2007 17:59:21 -0000 1.10
***************
*** 67,72 ****
/// <see cref="System.Collections.IList"/> (but never <cref lang="null"/>).
/// </returns>
! [CacheResult("AspNetCache", "'Aircrafts'", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
! [CacheResultItems("AspNetCache", "'Aircraft.Id=' + Id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public IList GetAllAircraft()
{
--- 67,72 ----
/// <see cref="System.Collections.IList"/> (but never <cref lang="null"/>).
/// </returns>
! [CacheResult("AspNetCache", "'Aircrafts'", TimeToLive = "0:1:0")]
! [CacheResultItems("AspNetCache", "'Aircraft.Id=' + Id", TimeToLive = "0:1:0")]
public IList GetAllAircraft()
{
***************
*** 86,90 ****
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Aircraft.Id=' + #id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public Aircraft GetAircraft(long id)
{
--- 86,90 ----
/// if no such <see cref="SpringAir.Domain.Airport"/> can be found.
/// </returns>
! [CacheResult("AspNetCache", "'Aircraft.Id=' + #id", TimeToLive = "0:1:0")]
public Aircraft GetAircraft(long id)
{
***************
*** 123,128 ****
}
! [CacheResult("AspNetCache", "'Aircrafts'", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
! [CacheResultItems("AspNetCache", "'Aircraft.Id=' + Id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public IList GetAllAircraft()
{
--- 123,128 ----
}
! [CacheResult("AspNetCache", "'Aircrafts'", TimeToLive = "0:1:0")]
! [CacheResultItems("AspNetCache", "'Aircraft.Id=' + Id", TimeToLive = "0:1:0")]
public IList GetAllAircraft()
{
***************
*** 130,134 ****
}
! [CacheResult("AspNetCache", "'Aircraft.Id=' + #id", TimeToLive = 60, SlidingExpiration = true, Priority = CachePriority.Low)]
public Aircraft GetAircraft(long id)
{
--- 130,134 ----
}
! [CacheResult("AspNetCache", "'Aircraft.Id=' + #id", TimeToLive = "0:1:0")]
public Aircraft GetAircraft(long id)
{
|