Class SurveyAssetDataTableAdapter
Represents the connection and commands used to retrieve and save data.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
SurveyAssetDataTableAdapter
Implements
System.ComponentModel.IComponent
System.IDisposable
Inherited Members
System.ComponentModel.Component.Dispose()
System.ComponentModel.Component.Dispose(System.Boolean)
System.ComponentModel.Component.GetService(System.Type)
System.ComponentModel.Component.ToString()
System.ComponentModel.Component.CanRaiseEvents
System.ComponentModel.Component.Events
System.ComponentModel.Component.Site
System.ComponentModel.Component.Container
System.ComponentModel.Component.DesignMode
System.ComponentModel.Component.Disposed
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.CreateObjRef(System.Type)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Votations.NSurvey.Data.SurveyAssetDataTableAdapters
Assembly: SurveyProject.BusinessEntities.dll
Syntax
[DataObject(true)]
public class SurveyAssetDataTableAdapter : Component, IComponent, IDisposable
Constructors
SurveyAssetDataTableAdapter()
Declaration
public SurveyAssetDataTableAdapter()
Properties
Adapter
Declaration
protected SqlDataAdapter Adapter { get; }
Property Value
Type | Description |
---|---|
System.Data.SqlClient.SqlDataAdapter |
ClearBeforeFill
Declaration
public bool ClearBeforeFill { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CommandCollection
Declaration
protected SqlCommand[] CommandCollection { get; }
Property Value
Type | Description |
---|---|
System.Data.SqlClient.SqlCommand[] |
Methods
Delete(Int32, Int32, String, String)
Declaration
public virtual int Delete(int Original_AssetId, int Original_SurveyId, string Original_AssetType, string Original_Name)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Original_AssetId | |
System.Int32 | Original_SurveyId | |
System.String | Original_AssetType | |
System.String | Original_Name |
Returns
Type | Description |
---|---|
System.Int32 |
Fill(SurveyAssetData.SurveyAssetDataDataTable)
Declaration
public virtual int Fill(SurveyAssetData.SurveyAssetDataDataTable dataTable)
Parameters
Type | Name | Description |
---|---|---|
SurveyAssetData.SurveyAssetDataDataTable | dataTable |
Returns
Type | Description |
---|---|
System.Int32 |
GetData()
Declaration
public virtual SurveyAssetData.SurveyAssetDataDataTable GetData()
Returns
Type | Description |
---|---|
SurveyAssetData.SurveyAssetDataDataTable |
Insert(Int32, String, String)
Declaration
public virtual int Insert(int SurveyId, string AssetType, string Name)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | SurveyId | |
System.String | AssetType | |
System.String | Name |
Returns
Type | Description |
---|---|
System.Int32 |
Update(DataRow)
Declaration
public virtual int Update(DataRow dataRow)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataRow | dataRow |
Returns
Type | Description |
---|---|
System.Int32 |
Update(DataRow[])
Declaration
public virtual int Update(DataRow[] dataRows)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataRow[] | dataRows |
Returns
Type | Description |
---|---|
System.Int32 |
Update(Int32, String, String, Int32, Int32, String, String)
Declaration
public virtual int Update(int SurveyId, string AssetType, string Name, int Original_AssetId, int Original_SurveyId, string Original_AssetType, string Original_Name)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | SurveyId | |
System.String | AssetType | |
System.String | Name | |
System.Int32 | Original_AssetId | |
System.Int32 | Original_SurveyId | |
System.String | Original_AssetType | |
System.String | Original_Name |
Returns
Type | Description |
---|---|
System.Int32 |
Update(Int32, String, String, Int32, Int32, String, String, Int32)
Declaration
public virtual int Update(int SurveyId, string AssetType, string Name, int Original_AssetId, int Original_SurveyId, string Original_AssetType, string Original_Name, int AssetId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | SurveyId | |
System.String | AssetType | |
System.String | Name | |
System.Int32 | Original_AssetId | |
System.Int32 | Original_SurveyId | |
System.String | Original_AssetType | |
System.String | Original_Name | |
System.Int32 | AssetId |
Returns
Type | Description |
---|---|
System.Int32 |
Update(SurveyAssetData)
Declaration
public virtual int Update(SurveyAssetData dataSet)
Parameters
Type | Name | Description |
---|---|---|
SurveyAssetData | dataSet |
Returns
Type | Description |
---|---|
System.Int32 |
Update(SurveyAssetData.SurveyAssetDataDataTable)
Declaration
public virtual int Update(SurveyAssetData.SurveyAssetDataDataTable dataTable)
Parameters
Type | Name | Description |
---|---|---|
SurveyAssetData.SurveyAssetDataDataTable | dataTable |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.ComponentModel.IComponent
System.IDisposable