Websharp instructions (7)

zhaozj2021-02-16  43

Attached 1: Websharp main interface definition:

PersistenceCapable:

Public Interface Persistencecapable

{

EntityData EntityData {Get; SET;

Int Objectcount {get;}

Void addnew ();

Bool next ();

Void first ();

}

PersistenceManager:

Public Interface PersistenceManager: IDisposable

{

Void close ();

Bool isclosed {get;}

Transaction CurrentTransaction {Get;}

Bool ignorecache {get; set;}

Void persistnewobject (entitydata entity);

Void PersistneWObject (PersistenceCapable PC);

Void UpdateObject (EntityData Entity);

Void UpdateObject (PersistenceCapable PC);

Void deleteObject (EntityData Entity);

Void deleteObject (PersistenceCapable PC);

Void relity;

Void Reload (PersistenceCapable PC);

Void Evict (Object PC);

Void EvicTall (Object [] PCS);

Void EvicTall (Icollection PCS);

Void evicTall ();

EntityData FindentityDataByPrimaryKey (Object ID, String EntityTypename);

EntityData FindentityDataByPrimaryKey (Object ID, EntityData Entity);

PersistenceCapable FindObjectByPrimaryKey (Object ID, PersistenceCapable PC);

PersistenceCapable FindObjectByPrimaryKey (Object ID, Type EntityType);

Query newquery ();

Query NewQuery (String EntityTypename);

Query NewQuery (String EntityTypename, String Filter);

Query NewQuery (String EntityTypename, String Filter, QueryParameterCollection Paramcollet);

DataAccess newDataAccess ();

}

TRANSACTION:

Public Interface Transaction

{

Void Begin ();

Void commit ();

Void rollback ();

PersistenceManager PersistenceManager {get;}

}

Query:

Public Interface Query

{

String EntityTypename {get; set;}

String filter {get; set;}

QueryParameterCollection Parameters

{

Get;

SET;

}

String Order {get; set;}

Bool ignorecache {get; set;}

EntityData querydata ();

PersistenceCapable QueryObject (PersistenceCapable PS); EntityData LoadSubbject (EntityData Entity, String Subtypename);

PersistenceCapable QueryObject (PersistenceCapable PS, String Subtypename);

EntityData loadingSubObjects (entityData entity);

PersistenceManager PersistenceManager {get;}

Bool querysubObjects {get; set;}

Bool isclosed {get;}

Void close ();

Void open ();

}

转载请注明原文地址:https://www.9cbs.com/read-26557.html

New Post(0)