diff --git a/yavscModel/ChangeLog b/yavscModel/ChangeLog index 68590a83..cf157d07 100644 --- a/yavscModel/ChangeLog +++ b/yavscModel/ChangeLog @@ -1,3 +1,12 @@ +2015-11-23 Paul Schneider + + * 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 * Manager.cs: implémente la fonction de construction des diff --git a/yavscModel/WorkFlow/Estimate.cs b/yavscModel/WorkFlow/Estimate.cs index 783bd949..7a83f919 100644 --- a/yavscModel/WorkFlow/Estimate.cs +++ b/yavscModel/WorkFlow/Estimate.cs @@ -8,7 +8,7 @@ namespace Yavsc.Model.WorkFlow /// Estimate. /// [Serializable] - public class Estimate : ITitle + public class Estimate : ITitle, IIdentified { /// /// Initializes a new instance of the class. diff --git a/yavscModel/WorkFlow/IContentProvider.cs b/yavscModel/WorkFlow/IContentProvider.cs index 38748d12..5f0d3bf9 100644 --- a/yavscModel/WorkFlow/IContentProvider.cs +++ b/yavscModel/WorkFlow/IContentProvider.cs @@ -9,7 +9,7 @@ namespace Yavsc.Model.WorkFlow /// Interface content provider. /// Class Assertion: Statuses.Length >= FinalStatuses.Length. /// - public interface IContentProvider : IDbModule, IDisposable, IDataProvider + public interface IContentProvider : IDbModule, IDisposable, IDataProvider { /// diff --git a/yavscModel/WorkFlow/IDataProvider.cs b/yavscModel/WorkFlow/IDataProvider.cs index 84dc0bbd..6468ff9a 100644 --- a/yavscModel/WorkFlow/IDataProvider.cs +++ b/yavscModel/WorkFlow/IDataProvider.cs @@ -7,13 +7,13 @@ namespace Yavsc.Model.WorkFlow /// /// I data provider. /// - public interface IDataProvider + public interface IDataProvider where T : IIdentified { /// /// Get the specified id. /// /// Identifier. - T Get (long id); + T Get (IDT id); /// /// Update the specified data. ///