ObjectBinder<T> Class
Provides iterative access to strongly typed objects Wraps the functionality of the SqlDataReader so that it does not have to be referred to in the business layer.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Framework.Server.ObjectBinder<T>
Microsoft.TeamFoundation.Framework.Server.DatabasePartitionBinder
Microsoft.TeamFoundation.Framework.Server.DatabaseTenantUsageBinder
Microsoft.TeamFoundation.Framework.Server.ProjectionBinder<T>
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public MustInherit Class ObjectBinder(Of T) _
Implements IEnumerable(Of T), IEnumerable
public abstract class ObjectBinder<T> : IEnumerable<T>,
IEnumerable
generic<typename T>
public ref class ObjectBinder abstract : IEnumerable<T>,
IEnumerable
[<AbstractClass>]
type ObjectBinder<'T> =
class
interface IEnumerable<'T>
interface IEnumerable
end
JScript does not support generic types or methods.
Type Parameters
- T
The ObjectBinder<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ObjectBinder<T>() | Default Constructor | |
ObjectBinder<T>(SqlDataReader, String) | Constuctor that will be used when this binder is not being used as part of a result collection |
Top
Properties
Name | Description | |
---|---|---|
BaseReader | ||
Current | Gets/Sets Current Object | |
Items | Returns strongly typed list of all items in the reader cannot call after use of MoveNext method. | |
ProcedureName | ||
Reader |
Top
Methods
Name | Description | |
---|---|---|
Bind | Abstract Bind method to be implemented by the derived class. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | The object binder is a streaming enumerable and uses an internal object as the enumerator. This means it does not support being able to reset the enumerator. Also all requests to obtain an enumerator will use this object | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveNext | Moves to the next Object. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.