-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathIPocoClient.cs
More file actions
33 lines (30 loc) · 961 Bytes
/
Copy pathIPocoClient.cs
File metadata and controls
33 lines (30 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PocoHttp
{
public interface IPocoClient : IDisposable
{
/// <summary>
/// Creates a Queryable context similar to other ORM context
/// </summary>
/// <param name="entityType">type of the entity</param>
/// <returns></returns>
IQueryable Context(Type entityType);
/// <summary>
/// Creates a Queryable context similar to other ORM context
/// </summary>
/// <param name="entityType">type of the entity</param>
/// <param name="uri">Uri to be used instead of the one based on conventions and type name.
/// If it is relative and a base URI is provided, they will be appended
/// </param>
/// <returns></returns>
IQueryable Context(Type entityType, Uri uri);
/// <summary>
/// Base address of all HTTP calls.
/// If null, Uri needs to be provided to the Context call or
/// </summary>
Uri BaseAddress { get; set; }
}
}