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
- ObjectSelectorEditor.cs
- ChannelAcceptor.cs
- MailAddressParser.cs
- FamilyCollection.cs
- HttpClientChannel.cs
- QilScopedVisitor.cs
- ListenerElementsCollection.cs
- FormatConvertedBitmap.cs
- XmlCharCheckingReader.cs
- TemplateModeChangedEventArgs.cs
- SynchronizationHandlesCodeDomSerializer.cs
- LabelLiteral.cs
- ProcessThreadCollection.cs
- HotSpot.cs
- LiteralControl.cs
- SizeLimitedCache.cs
- UIElementAutomationPeer.cs
- HttpRequestCacheValidator.cs
- recordstate.cs
- HandlerWithFactory.cs
- TemplateEditingVerb.cs
- TextParagraphProperties.cs
- DashStyle.cs
- SettingsAttributeDictionary.cs
- TextEditorTables.cs
- PageThemeBuildProvider.cs
- InputMethodStateTypeInfo.cs
- XmlTextWriter.cs
- PresentationSource.cs
- SafeHandles.cs
- PageWrapper.cs
- TreeViewTemplateSelector.cs
- ScriptReferenceBase.cs
- XAMLParseException.cs
- MenuItemBinding.cs
- Line.cs
- OleDbStruct.cs
- PropertyIDSet.cs
- TerminatorSinks.cs
- IRCollection.cs
- GenericEnumConverter.cs
- PtsContext.cs
- URIFormatException.cs
- Ray3DHitTestResult.cs
- SqlWebEventProvider.cs
- ContractSearchPattern.cs
- Timeline.cs
- SourceLineInfo.cs
- GraphicsPathIterator.cs
- CodeCommentStatementCollection.cs
- ProviderConnectionPointCollection.cs
- HtmlLiteralTextAdapter.cs
- NumericExpr.cs
- Condition.cs
- XsltInput.cs
- ImageCollectionEditor.cs
- Win32KeyboardDevice.cs
- MasterPageCodeDomTreeGenerator.cs
- SpecialFolderEnumConverter.cs
- SuppressMessageAttribute.cs
- ActivityInstance.cs
- SHA384.cs
- HttpApplication.cs
- SQLBinary.cs
- ReturnValue.cs
- SecurityChannelFactory.cs
- RawMouseInputReport.cs
- EmptyReadOnlyDictionaryInternal.cs
- GridItemCollection.cs
- SiteMapDataSource.cs
- InternalControlCollection.cs
- ContentPosition.cs
- WsdlEndpointConversionContext.cs
- IIS7WorkerRequest.cs
- DataTableCollection.cs
- Activity.cs
- TripleDESCryptoServiceProvider.cs
- GacUtil.cs
- NamespaceList.cs
- MenuItem.cs
- SQLSingleStorage.cs
- ScrollEventArgs.cs
- PersonalizationState.cs
- ViewEventArgs.cs
- ToolStripDropDownMenu.cs
- XmlDocumentFragment.cs
- InputMethodStateChangeEventArgs.cs
- SafeCertificateStore.cs
- GlyphRunDrawing.cs
- ParseChildrenAsPropertiesAttribute.cs
- PersonalizationProviderHelper.cs
- Util.cs
- ProtocolViolationException.cs
- SkewTransform.cs
- StringOutput.cs
- XmlElement.cs
- InkCanvas.cs
- DBCSCodePageEncoding.cs
- DataService.cs
- TableLayoutStyleCollection.cs