Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqToSqlWrapper.cs / 1 / LinqToSqlWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Reflection; using System.Data.Linq; internal class LinqToSqlWrapper : ILinqToSql { public void Add(ITable table, object row) { table.InsertOnSubmit(row); } public void Attach(ITable table, object row) { table.Attach(row); } public object GetOriginalEntityState(ITable table, object row) { return table.GetOriginalEntityState(row); } public void Refresh(DataContext dataContext, RefreshMode mode, object entity) { dataContext.Refresh(mode, entity); } public void Remove(ITable table, object row) { table.DeleteOnSubmit(row); } public void SubmitChanges(DataContext dataContext) { dataContext.SubmitChanges(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Reflection; using System.Data.Linq; internal class LinqToSqlWrapper : ILinqToSql { public void Add(ITable table, object row) { table.InsertOnSubmit(row); } public void Attach(ITable table, object row) { table.Attach(row); } public object GetOriginalEntityState(ITable table, object row) { return table.GetOriginalEntityState(row); } public void Refresh(DataContext dataContext, RefreshMode mode, object entity) { dataContext.Refresh(mode, entity); } public void Remove(ITable table, object row) { table.DeleteOnSubmit(row); } public void SubmitChanges(DataContext dataContext) { dataContext.SubmitChanges(); } } } // 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
- TrackingAnnotationCollection.cs
- ByteStorage.cs
- ChannelListenerBase.cs
- ToolStripItemImageRenderEventArgs.cs
- BuildResult.cs
- StructuredProperty.cs
- SQLSingleStorage.cs
- TypeSystem.cs
- HorizontalAlignConverter.cs
- TrackingProfile.cs
- Attribute.cs
- UIElementAutomationPeer.cs
- ChangePassword.cs
- ChineseLunisolarCalendar.cs
- Parsers.cs
- MenuItem.cs
- RenameRuleObjectDialog.cs
- SimplePropertyEntry.cs
- ProfileInfo.cs
- RIPEMD160.cs
- StateMachineWorkflow.cs
- util.cs
- AccessKeyManager.cs
- PinProtectionHelper.cs
- ManagedWndProcTracker.cs
- AsyncPostBackTrigger.cs
- AdornerLayer.cs
- StringAttributeCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- HiddenFieldDesigner.cs
- RetrieveVirtualItemEventArgs.cs
- FixedPageStructure.cs
- PerformanceCounterPermissionAttribute.cs
- TypeConvertions.cs
- Section.cs
- StringUtil.cs
- TriggerBase.cs
- TemplateBuilder.cs
- XmlEnumAttribute.cs
- TableItemPatternIdentifiers.cs
- ClientSettingsSection.cs
- References.cs
- CmsInterop.cs
- SimplePropertyEntry.cs
- Version.cs
- TextParentUndoUnit.cs
- BevelBitmapEffect.cs
- InstalledFontCollection.cs
- RedirectionProxy.cs
- TextBox.cs
- IPHostEntry.cs
- ClrPerspective.cs
- PointLightBase.cs
- ServiceManager.cs
- MultiPropertyDescriptorGridEntry.cs
- TemplateManager.cs
- StyleHelper.cs
- ExceptionTranslationTable.cs
- AlternationConverter.cs
- SafeEventLogWriteHandle.cs
- StylusPointPropertyId.cs
- ParameterDataSourceExpression.cs
- UpdateRecord.cs
- WindowExtensionMethods.cs
- DataException.cs
- OperationResponse.cs
- StateMachineHelpers.cs
- SourceLocation.cs
- XmlILStorageConverter.cs
- QueryMath.cs
- WebCategoryAttribute.cs
- RayHitTestParameters.cs
- PopupRoot.cs
- NameTable.cs
- SimpleFieldTemplateUserControl.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- KoreanLunisolarCalendar.cs
- BaseValidator.cs
- CriticalHandle.cs
- NavigationEventArgs.cs
- RadioButtonRenderer.cs
- CommandBindingCollection.cs
- NGCSerializationManager.cs
- ListControlActionList.cs
- WebPartExportVerb.cs
- TemplateNameScope.cs
- SchemaSetCompiler.cs
- TakeOrSkipWhileQueryOperator.cs
- SoapTypeAttribute.cs
- IconEditor.cs
- SqlClientMetaDataCollectionNames.cs
- FixedSOMPageConstructor.cs
- TypeConverterMarkupExtension.cs
- FreezableOperations.cs
- MimeTypeAttribute.cs
- Accessors.cs
- HTMLTextWriter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- InvalidComObjectException.cs
- CompiledELinqQueryState.cs