Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Data / System / Data / Sql / SqlMethodAttribute.cs / 1 / SqlMethodAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //junfang //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false), Serializable] public sealed class SqlMethodAttribute : SqlFunctionAttribute { private bool m_fCallOnNullInputs; private bool m_fMutator; private bool m_fInvokeIfReceiverIsNull; public SqlMethodAttribute() { // default values m_fCallOnNullInputs = true; m_fMutator = false; m_fInvokeIfReceiverIsNull = false; } // SqlMethodAttribute public bool OnNullCall { get { return m_fCallOnNullInputs; } set { m_fCallOnNullInputs = value; } } // CallOnNullInputs public bool IsMutator { get { return m_fMutator; } set { m_fMutator = value; } } // IsMutator public bool InvokeIfReceiverIsNull { get { return m_fInvokeIfReceiverIsNull; } set { m_fInvokeIfReceiverIsNull = value; } } // InvokeIfReceiverIsNull } // class SqlMethodAttribute } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //junfang //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false), Serializable] public sealed class SqlMethodAttribute : SqlFunctionAttribute { private bool m_fCallOnNullInputs; private bool m_fMutator; private bool m_fInvokeIfReceiverIsNull; public SqlMethodAttribute() { // default values m_fCallOnNullInputs = true; m_fMutator = false; m_fInvokeIfReceiverIsNull = false; } // SqlMethodAttribute public bool OnNullCall { get { return m_fCallOnNullInputs; } set { m_fCallOnNullInputs = value; } } // CallOnNullInputs public bool IsMutator { get { return m_fMutator; } set { m_fMutator = value; } } // IsMutator public bool InvokeIfReceiverIsNull { get { return m_fInvokeIfReceiverIsNull; } set { m_fInvokeIfReceiverIsNull = value; } } // InvokeIfReceiverIsNull } // class SqlMethodAttribute } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinqTreeNodeEvaluator.cs
- CssStyleCollection.cs
- PointCollection.cs
- UserUseLicenseDictionaryLoader.cs
- WaitHandle.cs
- EventEntry.cs
- LineProperties.cs
- ApplicationContext.cs
- SystemTcpStatistics.cs
- ObjectDisposedException.cs
- DesignerWebPartChrome.cs
- CacheMemory.cs
- DbConnectionStringCommon.cs
- DataMemberAttribute.cs
- Expression.cs
- PlainXmlSerializer.cs
- PreservationFileReader.cs
- CustomErrorCollection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TypeBrowser.xaml.cs
- WebBrowserUriTypeConverter.cs
- ErrorHandlingReceiver.cs
- StackSpiller.Bindings.cs
- ApplicationSecurityManager.cs
- _PooledStream.cs
- PrinterSettings.cs
- ButtonBase.cs
- HeaderLabel.cs
- HtmlInputReset.cs
- OrthographicCamera.cs
- ListDictionaryInternal.cs
- ProtectedConfiguration.cs
- StringAnimationBase.cs
- Message.cs
- Button.cs
- DebugInfoGenerator.cs
- CharAnimationUsingKeyFrames.cs
- TypeBuilder.cs
- ReverseQueryOperator.cs
- AssemblyNameProxy.cs
- DynamicDocumentPaginator.cs
- DropSource.cs
- NamespaceDecl.cs
- SchemaImporter.cs
- OpCodes.cs
- RegionIterator.cs
- ViewStateException.cs
- BuildDependencySet.cs
- BlockExpression.cs
- OrderPreservingPipeliningMergeHelper.cs
- DbModificationClause.cs
- AuthenticationModulesSection.cs
- basecomparevalidator.cs
- _HTTPDateParse.cs
- DataAccessor.cs
- XPathNodeIterator.cs
- DirectionalLight.cs
- DataReceivedEventArgs.cs
- EncodingNLS.cs
- TextChangedEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- CultureInfo.cs
- OleStrCAMarshaler.cs
- ReflectionUtil.cs
- ParameterBuilder.cs
- Odbc32.cs
- ThreadExceptionEvent.cs
- PackUriHelper.cs
- DatePickerTextBox.cs
- ApplicationServiceManager.cs
- ExceptionHandlers.cs
- EventsTab.cs
- FixedPage.cs
- AssemblyFilter.cs
- PersonalizableAttribute.cs
- JumpTask.cs
- DefaultClaimSet.cs
- DbCommandDefinition.cs
- CodeDelegateInvokeExpression.cs
- SecurityAttributeGenerationHelper.cs
- InternalConfigSettingsFactory.cs
- COSERVERINFO.cs
- DictionaryTraceRecord.cs
- CfgRule.cs
- RadioButton.cs
- TextTreeUndoUnit.cs
- DbConnectionStringBuilder.cs
- SpecialNameAttribute.cs
- Thickness.cs
- ProfilePropertyNameValidator.cs
- ContentFilePart.cs
- DecimalConstantAttribute.cs
- DataGridPagerStyle.cs
- BufferBuilder.cs
- ParserHooks.cs
- GeometryCollection.cs
- WebOperationContext.cs
- ProjectionNode.cs
- HttpWebResponse.cs
- DescendantOverDescendantQuery.cs