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

GetByType() public static method

Get all data from SmartReference table by the matching column of specified Type and return the array of IInternalState as result.
The current state of the connection is closed.
public static GetByType ( string type ) : IEnumerable
type string Match for the Type within SmartReference table.
return IEnumerable
        public static IEnumerable<IInternalState> GetByType(string type)
        {
            return new AdfQuery()
                .Select()
                .From(SmartReferenceDescriber.Table)
                .Where(SmartReferenceDescriber.Type).IsEqual(type)
                .OrderBy(SmartReferenceDescriber.Description).Ascending()
                .RunSplit(DataSource);
        }