Adf.Data.SmartReferences.SmartReferenceGateway.GetByName C# (CSharp) Méthode

GetByName() public static méthode

Get data from SmartReference table by the matching columns of specified Name and Type.
The current state of the connection is closed.
public static GetByName ( string name, string type ) : IInternalState
name string Match for the Name within SmartReference table.
type string Match for the Type within SmartReference table.
Résultat IInternalState
        public static IInternalState GetByName(string name, string type)
        {
            return new AdfQuery()
                .Select()
                .From(SmartReferenceDescriber.Table)
                .Where(SmartReferenceDescriber.Name).IsEqual(name)
                .And(SmartReferenceDescriber.Type).IsEqual(type)
                .Run(DataSource);
        }