Exemplo n.º 1
0
        public bool IsInAllDB;        //判断这个类是否能被存储在所有的数据库应用中

        public StoreInDBAttribute(bool isJoinedClass, CacheUsage cacheUsage, string dbSwitch, bool isInAllDB)
        {
            this.IsJoinedClass    = isJoinedClass;
            this.Usage            = cacheUsage;
            this.ConnectStringRef = dbSwitch;
            this.IsInAllDB        = isInAllDB;
        }
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="usage">The usage.</param>
		/// <param name="groupName">Name of the group.</param>
		public AdoNetCacheItemInformation(
			CacheUsage usage,
			string groupName )
		{
			this.usage = usage;
			this.Group = new CacheItemGroup( groupName );
		}
Exemplo n.º 3
0
 public CacheItemQueue(MapType Type, Point Pos, int Zoom, MemoryStream Img, CacheUsage cacheType)
 {
     this.Type      = Type;
     this.Pos       = Pos;
     this.Zoom      = Zoom;
     this.Img       = Img;
     this.CacheType = cacheType;
 }
Exemplo n.º 4
0
 public CacheItemQueue(MapType Type, GPoint Pos, int Zoom, MemoryStream Img, CacheUsage cacheType)
 {
     this.Type = Type;
      this.Pos = Pos;
      this.Zoom = Zoom;
      this.Img = Img;
      this.CacheType = cacheType;
 }
Exemplo n.º 5
0
        private string CacheEnumToString(CacheUsage usage)
        {
            switch (usage)
            {
            case CacheUsage.READWRITE:
                return("read-write");

            case CacheUsage.READONLY:
                return("read-only");

            case CacheUsage.NONONSTRICTREADWRITE:
                return("nononstrict-read-write");

            case CacheUsage.TRANSACTIONAL:
                return("transactional");

            case CacheUsage.NONE:
                return(null);

            default:
                throw new NotImplementedException();
            }
        }
Exemplo n.º 6
0
 public StoreInDBAttribute(bool isJoinedClass, CacheUsage cacheUsage, bool isInAllDB)
     : this(isJoinedClass, cacheUsage, DBSwitch.DefaultDBSwitch.ConnectStringRef, isInAllDB)
 {
 }
Exemplo n.º 7
0
 private void SetCacheUsage(CacheUsage value, string thereIsNoCacheServer)
 {
     CacheUsageDecision = value;
     _log.AppendLine($"Setting {nameof(CacheUsageDecision)} to {value} because {thereIsNoCacheServer}");
 }
Exemplo n.º 8
0
 public CacheQueueItem(RawTile tile, byte[] Img, CacheUsage cacheType)
 {
     this.Tile      = tile;
     this.Img       = Img;
     this.CacheType = cacheType;
 }
Exemplo n.º 9
0
 public void Usage(CacheUsage cacheUsage)
 {
     cacheMapping.usage = cacheUsage.ToHbm();
 }
Exemplo n.º 10
0
 public CacheQueueItem(RawTile tile, byte[] Img, CacheUsage cacheType)
 {
    this.Tile = tile;
    this.Img = Img;
    this.CacheType = cacheType;
 }
Exemplo n.º 11
0
		public void Usage(CacheUsage cacheUsage)
		{
			cacheMapping.usage = cacheUsage.ToHbm();
		}
 public CacheQueueItem(RawTile tile, byte[] img, CacheUsage cacheType)
 {
     Tile      = tile;
     this.Img  = img;
     CacheType = cacheType;
 }
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="operation">The operation.</param>
		/// <param name="usage">The usage.</param>
		/// <param name="groupName">Name of the group.</param>
		public AdoNetCacheItemInformation(
			AdoNetCacheDBOperation operation,
			CacheUsage usage,
			string groupName )
		{
			this.operation = operation;
			this.usage = usage;
			this.Group = new CacheItemGroup( groupName );
		}
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="operation">The operation.</param>
		/// <param name="usage">The usage.</param>
		public AdoNetCacheItemInformation(
			AdoNetCacheDBOperation operation,
			CacheUsage usage )
		{
			this.operation = operation;
			this.usage = usage;
		}
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="usage">The usage.</param>
		public AdoNetCacheItemInformation(
			CacheUsage usage )
		{
			this.usage = usage;
		}