|  | RecroTrack Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: Recrovit.RecroGridFramework
 Syntax
Syntaxpublic class RecroTrack : RecroTrackA, IDisposable
The RecroTrack type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | RecroTrack | 
            Initializes a new instance of the RecroTrack class.
             | 
 Properties
Properties| Name | Description | |
|---|---|---|
|   | Enabled | 
            Gets a value indicating whether this RecroTrack is enabled.
             | 
|  | FEPType | 
            Gets or sets the type of the FEP.
             | 
|  | RGDataContext | 
            Gets or sets the context.
            (Inherited from RecroTrackA.) | 
|   | RowVersionName | 
            Gets the name of the row version.
             | 
|  | TransactionComment | 
            Gets or sets the comment.
             | 
|  | TransactionName | 
            Gets or sets the name of the transaction.
             | 
|  | UserId | 
            Gets or sets the user identifier.
             | 
|  | UserName | 
            Gets the name of the user from UserId.
             | 
 Methods
Methods| Name | Description | |
|---|---|---|
|   | ClearCache | 
            Clears the cache.
             | 
|  | ExecuteUpdateAsync | 
            ha version == 0, akkor a version-t nem bántja
            ha version > 0, akkor a version=a megadott verzió
            ha version == null, akkor a version=version+1
            pl.
            Dictionary<string, object> setParams = new Dictionary<string, object>();
            setParams.Add("Quantity", 3);
            Dictionary<string, object> whereParams = new Dictionary<string, object>();
            whereParams.Add("KszId", uj.KszId)
            this.Tracking.ExecuteUpdate(context, "lp_szmtetel", setParams, "lp_szmtetel.KszId=@KszId", whereParams);
             | 
|   | Init | 
            RecroTrack globális beállítások inicializálása.
             | 
|  | SaveChangesAsync | 
            ObjectContext SaveChanges végrehajtása, és a RecroTrack objektumok mentése.
            (Overrides RecroTrackASaveChangesAsync.) | 
|   | SaveChangesAsync(ILogger, IRGDataContext, String, String, String) | 
            Az ObjectContext SaveChanges végrehajtása, és a RecroTrack objektumok mentése.
             | 
 Remarks
RemarksA RecroTrack_Table táblába fel kell venni azokat az entitásokat, amire működnie kell a történetnek. A [Keys] mezőbe többoszlopos kulcs esetén vesszővel elválasztott felsorolást kell megadni.
Ha a táblában szerepel RowVersion nevű oszlop (és az int típusú), akkor azt minden módosítás alkalmával növeli, illetve módosítás esetén figyeli az eredeti értéket és nem enged módosítani, ha az már változott.
web.config beállítások:
<Recrovit.RecroTrack>
    <setting name = "Enabled" serializeAs="String">
        <value>true</value>
    </setting>
    <setting name = "RowVersionName" serializeAs="String">
        <value>rowversion</value>
    </setting>
</Recrovit.RecroTrack>ObjectContext használata esetén a RecroTrack_* táblákat tartalmaznia kell a modellnek.
More information. See Also
See Also