110,534
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Text;
namespace FinaHome.IDAL
{
public interface IGenericDao<T, U>
where T : class
where U : struct
{
/** Persist the newInstance object into database */
U create(T newInstance);
/** Retrieve an object that was previously persisted to the database using
* the indicated key as primary key
*/
T read(U key);
/** Save changes made to a persistent object. */
void update(T transientObject);
/** Remove an object from persistent storage in the database */
void delete(T persistentObject);
}
}