Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Design / system / Data / EntityModel / Emitters / Emitter.cs / 1 / Emitter.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.CodeDom; namespace System.Data.EntityModel.Emitters { ////// /// internal abstract class Emitter { #region Instance Fields private ClientApiGenerator _generator; #endregion #region Static Fields private static CodeExpression _nullExpression; private static CodeExpression _thisRef; ///Name of property used to get StorageContext from an Entity private const string EntityGetContextPropertyName = "Context"; ///Name of property used to get StorageContext from a StorageSearcher protected const string SearcherGetContextPropertyName = "Context"; #endregion #region Protected Methods ////// /// /// protected Emitter(ClientApiGenerator generator) { Generator = generator; } ////// /// /// ///protected static CodeBinaryOperatorExpression EmitExpressionEqualsNull(CodeExpression expression) { return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityEquality, NullExpression); } protected static CodeBinaryOperatorExpression EmitExpressionDoesNotEqualNull(CodeExpression expression) { return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityInequality, NullExpression); } #endregion #region Protected Properties /// /// /// protected static CodeExpression ThisRef { get { if (_thisRef == null) _thisRef = new CodeThisReferenceExpression(); return _thisRef; } } ////// /// internal ClientApiGenerator Generator { get { return _generator; } private set { _generator = value; } } protected TypeReference TypeReference { get { return _generator.TypeReference; } } protected AttributeEmitter AttributeEmitter { get { return _generator.AttributeEmitter; } } protected static CodeExpression NullExpression { get { if (_nullExpression == null) _nullExpression = new CodePrimitiveExpression(null); return _nullExpression; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.CodeDom; namespace System.Data.EntityModel.Emitters { ////// /// internal abstract class Emitter { #region Instance Fields private ClientApiGenerator _generator; #endregion #region Static Fields private static CodeExpression _nullExpression; private static CodeExpression _thisRef; ///Name of property used to get StorageContext from an Entity private const string EntityGetContextPropertyName = "Context"; ///Name of property used to get StorageContext from a StorageSearcher protected const string SearcherGetContextPropertyName = "Context"; #endregion #region Protected Methods ////// /// /// protected Emitter(ClientApiGenerator generator) { Generator = generator; } ////// /// /// ///protected static CodeBinaryOperatorExpression EmitExpressionEqualsNull(CodeExpression expression) { return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityEquality, NullExpression); } protected static CodeBinaryOperatorExpression EmitExpressionDoesNotEqualNull(CodeExpression expression) { return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityInequality, NullExpression); } #endregion #region Protected Properties /// /// /// protected static CodeExpression ThisRef { get { if (_thisRef == null) _thisRef = new CodeThisReferenceExpression(); return _thisRef; } } ////// /// internal ClientApiGenerator Generator { get { return _generator; } private set { _generator = value; } } protected TypeReference TypeReference { get { return _generator.TypeReference; } } protected AttributeEmitter AttributeEmitter { get { return _generator.AttributeEmitter; } } protected static CodeExpression NullExpression { get { if (_nullExpression == null) _nullExpression = new CodePrimitiveExpression(null); return _nullExpression; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeEventReferenceExpression.cs
- AuthorizationSection.cs
- ContextQuery.cs
- TargetInvocationException.cs
- ReachNamespaceInfo.cs
- StructuralCache.cs
- Mappings.cs
- ArgumentException.cs
- ProbeMatches11.cs
- PagesSection.cs
- KerberosTicketHashIdentifierClause.cs
- PageParser.cs
- SQLString.cs
- AnnotationComponentManager.cs
- OrthographicCamera.cs
- PageCatalogPart.cs
- DesignerDataParameter.cs
- SiteMap.cs
- HttpModuleActionCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- ProxyHelper.cs
- XmlSchemaAttributeGroup.cs
- ExpandedWrapper.cs
- ApplyTemplatesAction.cs
- ValidationManager.cs
- DelegateHelpers.Generated.cs
- Queue.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DecoderFallback.cs
- BuildProviderCollection.cs
- AbstractSvcMapFileLoader.cs
- listitem.cs
- BinaryMessageEncodingBindingElement.cs
- Geometry3D.cs
- LinqDataSourceDisposeEventArgs.cs
- ChangePassword.cs
- BulletedListEventArgs.cs
- DataBoundControl.cs
- FutureFactory.cs
- SQLInt64.cs
- RijndaelCryptoServiceProvider.cs
- XmlSerializationGeneratedCode.cs
- ADMembershipProvider.cs
- DiscoveryMessageSequence.cs
- PipelineDeploymentState.cs
- OptimizedTemplateContent.cs
- PresentationTraceSources.cs
- UnknownBitmapEncoder.cs
- NativeMethods.cs
- ViewBox.cs
- SymbolEqualComparer.cs
- FlowDocumentFormatter.cs
- FrameworkElementFactoryMarkupObject.cs
- List.cs
- StrokeCollectionDefaultValueFactory.cs
- OutputCacheSection.cs
- FormatException.cs
- View.cs
- DependencyObjectProvider.cs
- DataGridViewAddColumnDialog.cs
- SecureStringHasher.cs
- ConfigXmlText.cs
- WindowsTokenRoleProvider.cs
- MappedMetaModel.cs
- StoreItemCollection.cs
- TextServicesCompartmentContext.cs
- LogicalExpr.cs
- Parsers.cs
- XmlElement.cs
- BinaryWriter.cs
- TrackingProfile.cs
- HttpVersion.cs
- MergeFailedEvent.cs
- DesigntimeLicenseContext.cs
- BidPrivateBase.cs
- CodeCompiler.cs
- XsltSettings.cs
- RegexFCD.cs
- CodeAssignStatement.cs
- CalendarDayButton.cs
- DataGridViewSelectedCellCollection.cs
- UserPreferenceChangedEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- ServiceContractGenerator.cs
- FormViewCommandEventArgs.cs
- cryptoapiTransform.cs
- Events.cs
- SubstitutionResponseElement.cs
- ADConnectionHelper.cs
- Pen.cs
- ResponseStream.cs
- RequiredFieldValidator.cs
- ReflectionUtil.cs
- UserUseLicenseDictionaryLoader.cs
- SqlGenerator.cs
- EpmHelper.cs
- SqlDataSourceCache.cs
- ExcCanonicalXml.cs
- Soap12ProtocolReflector.cs
- FamilyCollection.cs