System.Data.Linq Spazio dei nomi
Lo spazio dei nomi System.Data.Linq contiene classi che supportano l'interazione con i database relazionali nelle applicazioni LINQ to SQL. The System.Data.Linq namespace contains classes that support interaction with relational databases in LINQ to SQL applications.
Classi
Binary |
Rappresenta un blocco immutabile di dati binari.Represents an immutable block of binary data. |
ChangeConflictCollection |
Restituisce una raccolta di oggetti interessati da conflitti di concorrenza.Returns a collection of objects involved in concurrency conflicts. |
ChangeConflictException |
Oggetto generato quando un aggiornamento ha esito negativo perché i valori del database sono stati aggiornati dall'ultima lettura del client.Thrown when an update fails because database values have been updated since the client last read them. |
ChangeSet |
Fornisce un contenitore per le modifiche.Provides a container to hold changes. |
CompiledQuery |
Consente di compilare e memorizzare nella cache le query da riutilizzare.Provides for compilation and caching of queries for reuse. |
DataContext |
Rappresenta il punto di ingresso principale per il framework LINQ to SQL.Represents the main entry point for the LINQ to SQL framework. |
DataLoadOptions |
Fornisce il caricamento e il filtraggio immediati dei dati correlati.Provides for immediate loading and filtering of related data. |
DBConvert |
Utilizzato internamente per la conversione da un tipo a un altro.Used internally to convert one type to another. |
DuplicateKeyException |
Oggetto generato quando si tenta di aggiungere un oggetto alla cache delle identità utilizzando una chiave già in uso.Thrown when an attempt is made to add an object to the identity cache by using a key that is already being used. |
EntitySet<TEntity> |
Fornisce il caricamento posticipato e la gestione delle relazioni per il lato raccolta di relazioni uno-a-molti e uno-a-uno in un'applicazione LINQ to SQL.Provides for deferred loading and relationship maintenance for the collection side of one-to-many and one-to-one relationships in a LINQ to SQL applications. |
ForeignKeyReferenceAlreadyHasValueException |
Rappresenta gli errori che si verificano quando si tenta di modificare una chiave esterna ma l'entità è già caricata.Represents errors that occur when an attempt is made to change a foreign key when the entity is already loaded. |
MemberChangeConflict |
Rappresenta una situazione in cui un aggiornamento tentato ha esito negativo perché i valori dei membri sono stati aggiornati dall'ultima lettura del client.Represents a situation in which an attempted update fails because member values have been updated since the client last read them. |
ObjectChangeConflict |
Rappresenta un tentativo di aggiornamento con uno o più conflitti di concorrenza ottimistica.Represents an update attempt with one or more optimistic concurrency conflicts. |
Table<TEntity> |
Rappresenta una tabella per un tipo specifico nel database sottostante.Represents a table for a particular type in the underlying database. |
Struct
EntityRef<TEntity> |
Fornisce il caricamento posticipato e la gestione delle relazioni per il lato singleton di una relazione uno-a-molti in un'applicazione LINQ to SQL.Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application. |
Link<T> |
Utilizzato per attivare il caricamento posticipato di proprietà singole (simile a EntityRef<TEntity>).Used to enable deferred loading of individual properties (similar to EntityRef<TEntity>). |
ModifiedMemberInfo |
Contiene i valori dei membri modificati nelle applicazioni LINQ to SQL.Holds values of members that have been modified in LINQ to SQL applications. |
Interfacce
IExecuteResult |
Fornisce l'accesso ai risultati o al valore restituito dell'esecuzione di una query.Provides access to the return value or results of executing a query. |
IFunctionResult |
Fornisce l'accesso al valore restituito di una funzione.Provides access to the return value of a function. |
IMultipleResults |
Rappresenta i risultati di funzioni o query mappate con sequenze restituite variabili.Represents the results of mapped functions or queries with variable return sequences. |
ISingleResult<T> |
Rappresenta il risultato di una funzione mappata che ha una sola sequenza di restituzione.Represents the result of a mapped function that has a single return sequence. |
ITable |
Oggetto utilizzato per gli scenari di query con tipizzazione debole.Used for weakly typed query scenarios. |
ITable<TEntity> |
Rappresenta una tabella per un tipo specifico nel database sottostante.Represents a table for a particular type in the underlying database. |
Enumerazioni
ChangeAction |
Descrive il tipo di modifica che subirà l'entità quando le modifiche verranno inviate al database.Describes the type of change the entity will undergo when changes are submitted to the database. |
ConflictMode |
Specifica quando devono essere segnalati i conflitti di concorrenza.Specifies when concurrency conflicts should be reported. |
RefreshMode |
Definisce le modalità con le quali il metodo Refresh gestisce i conflitti di concorrenza ottimistica.Defines how the Refresh method handles optimistic concurrency conflicts. |
Commenti
LINQ to SQLLINQ to SQL è una tecnologia che fornisce un'infrastruttura di runtime per la gestione dei dati relazionali come oggetti.is a technology that provides a run-time infrastructure for managing relational data as objects. Per altre informazioni, vedere LINQ to SQL.For more information, see LINQ to SQL.