Adf.Data.SmartReferences.SmartReferenceGateway.Get C# (CSharp) Method

Get() public static method

Get data from SmartReference table by the matching columns of specified Id and Type.
The current state of the connection is closed.
public static Get ( ID id, string type ) : IInternalState
id Adf.Core.Identity.ID Match for the Id within SmartReference table.
type string Match for the Type within SmartReference table.
return IInternalState
        public static IInternalState Get(ID id, string type)
        {
            return new AdfQuery()
                .Select()
                .From(SmartReferenceDescriber.Table)
                .Where(SmartReferenceDescriber.Id).IsEqual(id)
                .And(SmartReferenceDescriber.Type).IsEqual(type)
                .Run(DataSource);
        }