Has wcf created from Repository pattern?
No. Classes/interfaces are more of a Object oriented construct, in this case a VB.Net or C# language thing and is in more general use. Often patterns make use of Interfaces and class inheritance to work, but not specifically to the repository pattern.
The repository pattern can be summed up as a proxy or facade around a data access layer in psuedo-code it would be typically involve wrappering CRUD operations:
public interface IRepository <T>
{
public void Insert(T entity);
public void Delete(T entity);
IEnumerable<T> GetAll();
IEnumerable<T> Search(Expression<Func<T,bool>> predicate);
T GetById(int id);
void Update(T updatedEntity)
}
With LINQ you'd probably want a Save method to commit updates, the Update would be redundant as you could then do a
GetById()
--> [update object] -->
Save()
if correctly implemented.
Though it is possible for WCF to expose something like these methods (e.g.
WCF Data Services[
^],
REST WCF [
^], or even something hand-rolled) - this is really one application of WCF, rather than WCF being an example of the repository pattern.
Hope this helps.