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
- FtpRequestCacheValidator.cs
- XmlAttribute.cs
- TableStyle.cs
- CanonicalXml.cs
- GeneralTransformGroup.cs
- SiteMapNodeItemEventArgs.cs
- SettingsPropertyCollection.cs
- TextParagraph.cs
- MediaContext.cs
- Soap.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- categoryentry.cs
- LinqDataSourceStatusEventArgs.cs
- SemanticAnalyzer.cs
- StrokeNodeData.cs
- ScopedKnownTypes.cs
- UpDownBase.cs
- ObjectConverter.cs
- ThicknessAnimation.cs
- GridViewItemAutomationPeer.cs
- Utils.cs
- CapiNative.cs
- IOException.cs
- ProtocolsConfigurationHandler.cs
- DocumentXmlWriter.cs
- TextParagraphProperties.cs
- ErrorStyle.cs
- PolyBezierSegmentFigureLogic.cs
- DataRelation.cs
- NavigationProgressEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- CopyAttributesAction.cs
- AmbientProperties.cs
- WebPartMovingEventArgs.cs
- CompleteWizardStep.cs
- SqlConnectionString.cs
- CodeGenHelper.cs
- FormClosedEvent.cs
- NamespaceExpr.cs
- Win32SafeHandles.cs
- FileChangesMonitor.cs
- XmlTextEncoder.cs
- arclist.cs
- ResXBuildProvider.cs
- XmlBinaryReaderSession.cs
- TextOnlyOutput.cs
- DataGridViewCellCancelEventArgs.cs
- XmlSchemaSimpleContent.cs
- DataProtection.cs
- ToolStripItemTextRenderEventArgs.cs
- ThreadStateException.cs
- Listbox.cs
- StylusPointProperty.cs
- AsyncDataRequest.cs
- PassportAuthenticationEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- DocumentGridPage.cs
- XamlRtfConverter.cs
- HttpProtocolImporter.cs
- RegexWriter.cs
- Wildcard.cs
- ResourceDefaultValueAttribute.cs
- ProfileServiceManager.cs
- ContextQuery.cs
- AutoGeneratedFieldProperties.cs
- SystemUdpStatistics.cs
- LightweightCodeGenerator.cs
- dataSvcMapFileLoader.cs
- OptimisticConcurrencyException.cs
- login.cs
- BasicBrowserDialog.cs
- CompModSwitches.cs
- TimeSpanStorage.cs
- AudioDeviceOut.cs
- Binding.cs
- _ScatterGatherBuffers.cs
- EntityViewGenerator.cs
- TimeSpanMinutesConverter.cs
- CodeTypeMember.cs
- SHA256Managed.cs
- GC.cs
- IPAddressCollection.cs
- DbConnectionClosed.cs
- PersonalizationProvider.cs
- ValueQuery.cs
- SubclassTypeValidator.cs
- BoolLiteral.cs
- RuntimeConfigurationRecord.cs
- ToolStripPanel.cs
- OdbcUtils.cs
- HttpRequest.cs
- Exceptions.cs
- Transform3D.cs
- DeclarationUpdate.cs
- ReceiveReply.cs
- StylusPlugInCollection.cs
- SQLSingle.cs
- StorageBasedPackageProperties.cs
- OutputCacheSettings.cs
- WindowsEditBoxRange.cs