refactorisation fournisseurs
* Estimate.cs: * IContentProvider.cs: refactorisation fournisseurs * IDataProvider.cs: Permet aux fournisseurs d'identifier les contenus avec un type de donnée arbitraire, du moment que ce type identifie les contenus.
This commit is contained in:
parent
82b02b9c0c
commit
df3e8e8286
4 changed files with 13 additions and 4 deletions
|
|
@ -1,3 +1,12 @@
|
||||||
|
2015-11-23 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* Estimate.cs:
|
||||||
|
* IContentProvider.cs: refactorisation fournisseurs
|
||||||
|
|
||||||
|
* IDataProvider.cs: Permet aux fournisseurs d'identifier les
|
||||||
|
contenus avec un type de donnée arbitraire,
|
||||||
|
du moment que ce type identifie les contenus.
|
||||||
|
|
||||||
2015-11-23 Paul Schneider <paul@pschneider.fr>
|
2015-11-23 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* Manager.cs: implémente la fonction de construction des
|
* Manager.cs: implémente la fonction de construction des
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace Yavsc.Model.WorkFlow
|
||||||
/// Estimate.
|
/// Estimate.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class Estimate : ITitle
|
public class Estimate : ITitle, IIdentified<long>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="Yavsc.Model.WorkFlow.Estimate"/> class.
|
/// Initializes a new instance of the <see cref="Yavsc.Model.WorkFlow.Estimate"/> class.
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ namespace Yavsc.Model.WorkFlow
|
||||||
/// Interface content provider.
|
/// Interface content provider.
|
||||||
/// Class Assertion: <c>Statuses.Length >= FinalStatuses.Length</c>.
|
/// Class Assertion: <c>Statuses.Length >= FinalStatuses.Length</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IContentProvider : IDbModule, IDisposable, IDataProvider<Estimate>
|
public interface IContentProvider : IDbModule, IDisposable, IDataProvider<Estimate,long>
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,13 @@ namespace Yavsc.Model.WorkFlow
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// I data provider.
|
/// I data provider.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IDataProvider<T>
|
public interface IDataProvider<T,IDT> where T : IIdentified<IDT>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Get the specified id.
|
/// Get the specified id.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">Identifier.</param>
|
/// <param name="id">Identifier.</param>
|
||||||
T Get (long id);
|
T Get (IDT id);
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the specified data.
|
/// Update the specified data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue