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

Remove() public static méthode

Delete the record from SmartReference table.
The current state of the connection is closed.
public static Remove ( IInternalState state ) : bool
state IInternalState The data of that needs to be removed.
Résultat bool
        public static bool Remove(IInternalState state)
        {
            if (state == null) throw new ArgumentNullException("state");

            return new AdfQuery()
                       .From(SmartReferenceDescriber.Table)
                       .Where(SmartReferenceDescriber.Id).IsEqual(state.ID)
                       .Remove(DataSource) == 1;
        }