Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Design / system / Data / EntityModel / Emitters / Emitter.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- CodeParameterDeclarationExpression.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- KeyMatchBuilder.cs
- EdmSchemaAttribute.cs
- InvalidOleVariantTypeException.cs
- SqlPersonalizationProvider.cs
- IdnMapping.cs
- ArgIterator.cs
- Component.cs
- LocalizationParserHooks.cs
- UIElementIsland.cs
- CalendarItem.cs
- IndentedTextWriter.cs
- WhiteSpaceTrimStringConverter.cs
- CommonXSendMessage.cs
- HtmlControlPersistable.cs
- SendMailErrorEventArgs.cs
- BufferAllocator.cs
- FileDialogCustomPlace.cs
- Imaging.cs
- AnimationException.cs
- PopupEventArgs.cs
- ServiceElementCollection.cs
- EventHandlingScope.cs
- CapabilitiesAssignment.cs
- KnownBoxes.cs
- GenericArgumentsUpdater.cs
- DataSourceGroupCollection.cs
- GlyphElement.cs
- SecondaryIndexList.cs
- ReturnType.cs
- XmlSignificantWhitespace.cs
- configsystem.cs
- Funcletizer.cs
- PageTrueTypeFont.cs
- DefaultAutoFieldGenerator.cs
- Message.cs
- EdmScalarPropertyAttribute.cs
- XslNumber.cs
- ToolboxItemAttribute.cs
- ObjectContext.cs
- Stacktrace.cs
- QuaternionKeyFrameCollection.cs
- NameValuePair.cs
- _IPv4Address.cs
- Msec.cs
- SessionStateSection.cs
- SHA512.cs
- FilterException.cs
- FormsAuthenticationConfiguration.cs
- COM2Properties.cs
- BindingExpressionUncommonField.cs
- UInt64Converter.cs
- XsdBuildProvider.cs
- HtmlInputFile.cs
- FormsIdentity.cs
- WebPartAddingEventArgs.cs
- NativeMethodsCLR.cs
- IntSecurity.cs
- MeasurementDCInfo.cs
- ControlBindingsCollection.cs
- SchemaSetCompiler.cs
- RotateTransform.cs
- HashMembershipCondition.cs
- ArcSegment.cs
- ExecutionContext.cs
- AnchorEditor.cs
- ZipIOExtraFieldElement.cs
- dbenumerator.cs
- PhysicalAddress.cs
- EntityTemplateFactory.cs
- StatusBarPanelClickEvent.cs
- SelectionProcessor.cs
- DatatypeImplementation.cs
- WindowsSlider.cs
- DiagnosticsConfigurationHandler.cs
- SmiContextFactory.cs
- IsolatedStorageFile.cs
- SafeFileMappingHandle.cs
- HwndAppCommandInputProvider.cs
- ExtenderControl.cs
- Repeater.cs
- DataObjectAttribute.cs
- ExtensionWindow.cs
- IOThreadScheduler.cs
- HttpCookieCollection.cs
- InputMethod.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlSchemaSimpleTypeRestriction.cs
- ValidationError.cs
- ContractReference.cs
- ErrorHandler.cs
- KeyNameIdentifierClause.cs
- MsdtcClusterUtils.cs
- PropertyInformationCollection.cs
- ApplicationSettingsBase.cs
- ReliabilityContractAttribute.cs
- DesignSurfaceCollection.cs
- RtfControls.cs