Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / LinqToSqlWrapper.cs / 1305376 / LinqToSqlWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- #if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls { #else namespace System.Web.UI.WebControls { #endif 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. // //----------------------------------------------------------------------------- #if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls { #else namespace System.Web.UI.WebControls { #endif 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
- SqlDataSourceConfigureSelectPanel.cs
- ToolStripDropDownMenu.cs
- BinaryObjectInfo.cs
- IpcManager.cs
- TypeExtensions.cs
- _ConnectStream.cs
- SimpleHandlerFactory.cs
- HttpTransportManager.cs
- PartialTrustVisibleAssembly.cs
- _AuthenticationState.cs
- RuntimeVariablesExpression.cs
- Formatter.cs
- SelectionListDesigner.cs
- SymbolDocumentInfo.cs
- EncoderParameter.cs
- BamlMapTable.cs
- EmptyControlCollection.cs
- TrackingServices.cs
- X509CertificateTokenFactoryCredential.cs
- ProfileSettings.cs
- ServiceOperation.cs
- LinearKeyFrames.cs
- MailAddressCollection.cs
- Ipv6Element.cs
- ResourceLoader.cs
- DesignOnlyAttribute.cs
- ConnectionProviderAttribute.cs
- ByeOperation11AsyncResult.cs
- SequenceRangeCollection.cs
- AccessibleObject.cs
- ServerIdentity.cs
- GenericTypeParameterConverter.cs
- StorageEndPropertyMapping.cs
- OdbcParameterCollection.cs
- KeyValuePairs.cs
- WeakEventTable.cs
- AuditLogLocation.cs
- smtpconnection.cs
- GeneralTransform2DTo3DTo2D.cs
- TextServicesCompartmentContext.cs
- X509ChainElement.cs
- XmlSchemaObjectCollection.cs
- SrgsGrammar.cs
- MessageFilterException.cs
- StringComparer.cs
- SchemaCollectionCompiler.cs
- PlatformNotSupportedException.cs
- FrameworkPropertyMetadata.cs
- QilUnary.cs
- InfoCardMasterKey.cs
- SaveFileDialogDesigner.cs
- CheckPair.cs
- WindowsAltTab.cs
- WindowsIdentity.cs
- GeometryModel3D.cs
- DeviceFilterDictionary.cs
- AnonymousIdentificationModule.cs
- QueryCursorEventArgs.cs
- SoapCodeExporter.cs
- DocumentSignatureManager.cs
- DataGridViewComboBoxEditingControl.cs
- SQLMoney.cs
- PersonalizationDictionary.cs
- RegexRunnerFactory.cs
- GraphicsPath.cs
- ImportOptions.cs
- DateTimeUtil.cs
- HiddenFieldPageStatePersister.cs
- ScriptHandlerFactory.cs
- DynamicResourceExtension.cs
- BindStream.cs
- MsmqTransportSecurity.cs
- Renderer.cs
- CubicEase.cs
- CompareInfo.cs
- KnownIds.cs
- BamlLocalizableResource.cs
- SQLChars.cs
- ConnectionInterfaceCollection.cs
- CodeGenerator.cs
- Funcletizer.cs
- RowsCopiedEventArgs.cs
- DispatcherOperation.cs
- TypeElementCollection.cs
- FileLogRecord.cs
- datacache.cs
- PenContext.cs
- MailHeaderInfo.cs
- SqlMethodAttribute.cs
- TreeNodeEventArgs.cs
- ComplusTypeValidator.cs
- RotateTransform.cs
- HwndKeyboardInputProvider.cs
- GeometryModel3D.cs
- ApplicationActivator.cs
- StdValidatorsAndConverters.cs
- NumericExpr.cs
- ModelItemKeyValuePair.cs
- AspCompat.cs
- DataGridRow.cs