Share via


FileScriptCache Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides file operations for script files. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.SchemaModel.ScriptCache
    Microsoft.Data.Schema.SchemaModel.FileScriptCache

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class FileScriptCache _
    Inherits ScriptCache _
    Implements ISerializable
[SerializableAttribute]
public sealed class FileScriptCache : ScriptCache, 
    ISerializable
[SerializableAttribute]
public ref class FileScriptCache sealed : public ScriptCache, 
    ISerializable
[<Sealed>]
[<SerializableAttribute>]
type FileScriptCache =  
    class
        inherit ScriptCache
        interface ISerializable
    end
public final class FileScriptCache extends ScriptCache implements ISerializable

The FileScriptCache type exposes the following members.

Constructors

  Name Description
Public method FileScriptCache Initializes a new instance of the FileScriptCache class.

Top

Properties

  Name Description
Public property AllCacheIdentifiers Gets a collection of current cache identifiers. (Overrides ScriptCache.AllCacheIdentifiers.)
Public property ModelBuilder Gets the model builder.

Top

Methods

  Name Description
Public method AddOrUpdate Adds or updates cached custom schema data.
Public method AddOrUpdateFile Adds or updates a file to the data model.
Protected method AddToCustomMetadataCache Sets the metadata that is associated with a cache entry. (Inherited from ScriptCache.)
Public method BatchLoadOrUpdate Returns a list of tasks that represent the files that will be loaded or updated.
Public method ContainsCacheIdentifier Determines whether the provided string contains a cache identifier. (Overrides ScriptCache.ContainsCacheIdentifier(String).)
Public method ConvertCacheIdentifierToFileName Converts the provided cache identifier to a file name.
Public method DeleteFile Deletes the file that is represented by the provided file name.
Public method Dispose() Releases resources. (Inherited from ScriptCache.)
Protected method Dispose(Boolean) When implemented in derived classes, releases resources. (Inherited from ScriptCache.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GenerateUniqueCacheIdentifier Returns a unique cache identifier. (Overrides ScriptCache.GenerateUniqueCacheIdentifier().)
Public method GetAllCustomSchemaDataFileNames Returns a collection of file names that represent the custom data files in the cache. (Overrides ScriptCache.GetAllCustomSchemaDataFileNames().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetMetadata Returns a read-only dictionary of metadata that is associated with the provided cache identifier. (Inherited from ScriptCache.)
Public method GetObjectData Instantiates the object from XML by using the provided data and context.
Protected method GetObjectDataForCustomMetadataCache Adds custom metadata for all cache entries to the provided serialization information. (Inherited from ScriptCache.)
Public method GetScript(String) Retrieves a script from a file by using the specified cache identifier. (Overrides ScriptCache.GetScript(String).)
Public method GetScript(String, Int32, Int32) Retrieves a specified script from a file by using the given cache identifier, file offset, and length. (Overrides ScriptCache.GetScript(String, Int32, Int32).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Initializes the FileScriptCache by using the provided ModelBuilder.
Protected method IsCustomMetadataCacheUnchanged Returns a value that indicates whether the custom metadata cache is unchanged. (Inherited from ScriptCache.)
Public method IsScriptUnchanged Returns a value that indicates whether the script file is unchanged.
Public method IsTaskItemUnchanged
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OptimizeForInsert Tells the associated ModelBuilder to optimize the script for insert instead of lookup.
Public method OptimizeForQuery Tells the associated ModelBuilder to optimize the script for lookup instead of insert.
Protected method RemoveFromCustomMetadataCache Removes the metadata from the specified cache entry. (Inherited from ScriptCache.)
Protected method SetCustomMetadataCache Sets the custom metadata cache for serialization. (Inherited from ScriptCache.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetMetadata Returns a value that indicates whether retrieval of the specified metadata was successful. (Inherited from ScriptCache.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace