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 ); }
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; }
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; }
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(); } }
public StoreInDBAttribute(bool isJoinedClass, CacheUsage cacheUsage, bool isInAllDB) : this(isJoinedClass, cacheUsage, DBSwitch.DefaultDBSwitch.ConnectStringRef, isInAllDB) { }
private void SetCacheUsage(CacheUsage value, string thereIsNoCacheServer) { CacheUsageDecision = value; _log.AppendLine($"Setting {nameof(CacheUsageDecision)} to {value} because {thereIsNoCacheServer}"); }
public CacheQueueItem(RawTile tile, byte[] Img, CacheUsage cacheType) { this.Tile = tile; this.Img = Img; this.CacheType = cacheType; }
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; }