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
- QueryRewriter.cs
- AssemblyBuilderData.cs
- Point3DKeyFrameCollection.cs
- OrderingQueryOperator.cs
- WindowsFormsSynchronizationContext.cs
- _SpnDictionary.cs
- PolyLineSegmentFigureLogic.cs
- DataSourceCache.cs
- ObjectListCommandEventArgs.cs
- DataObject.cs
- TrailingSpaceComparer.cs
- TTSEngineTypes.cs
- MouseActionValueSerializer.cs
- WinFormsComponentEditor.cs
- GroupLabel.cs
- WindowsRebar.cs
- EndpointConfigContainer.cs
- CommandBinding.cs
- BindUriHelper.cs
- ExtensionMethods.cs
- ControlValuePropertyAttribute.cs
- ChangeNode.cs
- Simplifier.cs
- TextProperties.cs
- dataobject.cs
- DetailsViewActionList.cs
- DirectoryInfo.cs
- ContextDataSource.cs
- SimpleWorkerRequest.cs
- ControlCollection.cs
- ConditionalExpression.cs
- WebEvents.cs
- DesignerOptionService.cs
- NodeFunctions.cs
- HMACSHA1.cs
- BevelBitmapEffect.cs
- OleCmdHelper.cs
- CharacterMetricsDictionary.cs
- ProxyHelper.cs
- RuleSettingsCollection.cs
- StorageComplexTypeMapping.cs
- XmlExtensionFunction.cs
- ToolStripMenuItem.cs
- CreatingCookieEventArgs.cs
- XamlClipboardData.cs
- EpmHelper.cs
- AuthenticateEventArgs.cs
- DelegateArgumentValue.cs
- CodeSnippetExpression.cs
- COM2PictureConverter.cs
- ChangeConflicts.cs
- ContractBase.cs
- BlurBitmapEffect.cs
- GlyphRunDrawing.cs
- CultureMapper.cs
- WebEncodingValidatorAttribute.cs
- MulticastNotSupportedException.cs
- InternalUserCancelledException.cs
- Journal.cs
- UIElementHelper.cs
- DesignerWithHeader.cs
- WebServiceParameterData.cs
- safelinkcollection.cs
- OptimalBreakSession.cs
- DataGridTable.cs
- UIHelper.cs
- TextLine.cs
- RowBinding.cs
- CustomErrorsSection.cs
- MessageQueuePermissionEntry.cs
- PolicyException.cs
- CollectionBase.cs
- ApplicationServicesHostFactory.cs
- wgx_commands.cs
- MessagePropertyFilter.cs
- HtmlWindowCollection.cs
- TdsEnums.cs
- TextParaClient.cs
- DataControlFieldsEditor.cs
- ApplicationDirectoryMembershipCondition.cs
- HtmlInputFile.cs
- EnumerableCollectionView.cs
- httpstaticobjectscollection.cs
- SecurityCookieModeValidator.cs
- RequestQueryParser.cs
- MetabaseServerConfig.cs
- HttpException.cs
- CodeTypeConstructor.cs
- SecurityDescriptor.cs
- TypeName.cs
- MimeReturn.cs
- MediaPlayer.cs
- MetaModel.cs
- RolePrincipal.cs
- UInt32Converter.cs
- DateTimeConverter.cs
- TableLayoutPanelCellPosition.cs
- Size3D.cs
- HotCommands.cs
- DataGridViewSelectedRowCollection.cs