Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AddInAdapter.cs
- XmlObjectSerializerReadContextComplex.cs
- SoapFaultCodes.cs
- Variable.cs
- RewritingValidator.cs
- ProvidePropertyAttribute.cs
- XmlImplementation.cs
- TagPrefixCollection.cs
- GuidelineCollection.cs
- MetadataUtilsSmi.cs
- DataGridViewColumn.cs
- SqlStatistics.cs
- Cursor.cs
- Bidi.cs
- ContentPosition.cs
- HandlerBase.cs
- BaseAddressElementCollection.cs
- IdentityHolder.cs
- RC2.cs
- transactioncontext.cs
- SecurityDescriptor.cs
- GregorianCalendar.cs
- MethodSignatureGenerator.cs
- WebPartRestoreVerb.cs
- HostingEnvironmentException.cs
- BindingValueChangedEventArgs.cs
- RMEnrollmentPage2.cs
- HtmlAnchor.cs
- WebEventCodes.cs
- ConnectionPoolManager.cs
- XmlSchemaComplexContent.cs
- FontWeightConverter.cs
- mediaeventargs.cs
- safex509handles.cs
- OrderedDictionary.cs
- NgenServicingAttributes.cs
- TraceInternal.cs
- TextServicesDisplayAttribute.cs
- SchemaLookupTable.cs
- OverflowException.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ContainerControl.cs
- PersonalizationEntry.cs
- PrintPreviewDialog.cs
- DateTimeStorage.cs
- ISFTagAndGuidCache.cs
- SchemaNamespaceManager.cs
- SapiRecoContext.cs
- ObjectListItemCollection.cs
- DebugHandleTracker.cs
- ObjectDataSourceChooseTypePanel.cs
- HtmlLink.cs
- ShapingWorkspace.cs
- ValidationResult.cs
- RelationshipNavigation.cs
- HttpModuleCollection.cs
- DataGridViewRowsAddedEventArgs.cs
- PropertyGroupDescription.cs
- ConfigXmlAttribute.cs
- ByValueEqualityComparer.cs
- InputScopeConverter.cs
- BitVector32.cs
- MetadataCache.cs
- AudioFormatConverter.cs
- AutomationPeer.cs
- RegularExpressionValidator.cs
- MessageEnumerator.cs
- Subtract.cs
- ClientType.cs
- WebDisplayNameAttribute.cs
- WorkflowRuntime.cs
- WebPartDeleteVerb.cs
- SystemResourceKey.cs
- InkCanvasFeedbackAdorner.cs
- AuthenticatedStream.cs
- TableLayoutSettingsTypeConverter.cs
- DSGeneratorProblem.cs
- UrlMappingsSection.cs
- RawStylusSystemGestureInputReport.cs
- SqlBooleanizer.cs
- DiscardableAttribute.cs
- CatalogZoneBase.cs
- ISFClipboardData.cs
- CodeAccessSecurityEngine.cs
- InfoCardUIAgent.cs
- PolicyStatement.cs
- FeedUtils.cs
- _SafeNetHandles.cs
- HandlerWithFactory.cs
- InternalPermissions.cs
- DeferredReference.cs
- ServiceHost.cs
- TransformationRules.cs
- TextControlDesigner.cs
- ModelItem.cs
- TrustLevel.cs
- AttributeAction.cs
- ComponentRenameEvent.cs
- CodeAttributeArgument.cs
- PropertyBuilder.cs