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
- SqlPersonalizationProvider.cs
- OpCellTreeNode.cs
- DataGridViewCellEventArgs.cs
- SafeCertificateStore.cs
- XmlDigitalSignatureProcessor.cs
- SQLBoolean.cs
- AssertValidation.cs
- SystemGatewayIPAddressInformation.cs
- XmlChildNodes.cs
- LeafCellTreeNode.cs
- GetFileNameResult.cs
- Converter.cs
- BCryptNative.cs
- XmlSchemaAll.cs
- TreeNodeBindingCollection.cs
- Method.cs
- RegexMatch.cs
- DialogResultConverter.cs
- ProfileModule.cs
- ContainerControl.cs
- LineGeometry.cs
- WebPartConnectionCollection.cs
- RtfNavigator.cs
- Stopwatch.cs
- CodeMemberField.cs
- ECDiffieHellmanCng.cs
- WebControlsSection.cs
- httpapplicationstate.cs
- ListSortDescriptionCollection.cs
- PropertyItemInternal.cs
- GridViewCancelEditEventArgs.cs
- SortedList.cs
- MetadataItemEmitter.cs
- QilName.cs
- Input.cs
- JoinGraph.cs
- NameScopePropertyAttribute.cs
- AssociationEndMember.cs
- EntityProviderFactory.cs
- AtomicFile.cs
- EntityContainer.cs
- ImageFormat.cs
- filewebresponse.cs
- ClientSettingsStore.cs
- TemplateEditingService.cs
- EditorAttribute.cs
- File.cs
- Avt.cs
- UnknownWrapper.cs
- WebRequestModulesSection.cs
- LogicalTreeHelper.cs
- XsltOutput.cs
- FixedSOMGroup.cs
- PolicyException.cs
- Message.cs
- C14NUtil.cs
- Positioning.cs
- SecurityTokenProvider.cs
- ListViewDeletedEventArgs.cs
- Parameter.cs
- MetadataHelper.cs
- TemplateContent.cs
- InstancePersistenceCommand.cs
- ScaleTransform.cs
- BatchWriter.cs
- SourceElementsCollection.cs
- HtmlContainerControl.cs
- RawStylusInputReport.cs
- Point3DKeyFrameCollection.cs
- ProcessHostServerConfig.cs
- AssemblyFilter.cs
- PropertyToken.cs
- XmlAnyElementAttributes.cs
- Funcletizer.cs
- DispatcherTimer.cs
- CngAlgorithmGroup.cs
- SafeMILHandle.cs
- OpacityConverter.cs
- InputQueueChannelAcceptor.cs
- PersonalizableTypeEntry.cs
- QuotaExceededException.cs
- XmlC14NWriter.cs
- SmtpClient.cs
- ContentDefinition.cs
- MemberRelationshipService.cs
- HostedNamedPipeTransportManager.cs
- wgx_commands.cs
- COM2EnumConverter.cs
- ContractCodeDomInfo.cs
- ToolStripPanelRenderEventArgs.cs
- COSERVERINFO.cs
- CompoundFileStorageReference.cs
- NavigationProperty.cs
- BaseTransportHeaders.cs
- DataGridViewRowConverter.cs
- MemberRelationshipService.cs
- TextRunProperties.cs
- XmlSchemaInclude.cs
- ExpressionEditorSheet.cs
- FormsAuthenticationModule.cs