Skip to content

Class Message

Namespace: Tool.SqlCore
Assembly: Tool.Net.dll

存储过程操作类(返回的消息对象)

csharp
[Serializable]
public class Message : IMessage

Inheritance

objectMessage

Implements

IMessage

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods

ObjectExtension.Add<T>(object, object, object), ObjectExtension.CopyEntity(object, object, params string[]), ObjectExtension.EntityToJson(object), ObjectExtension.EntityToJson(object, bool), ObjectExtension.EntityToJson(object, bool, string), DictionaryExtension.GetDictionary(object), TypeExtension.GetFieldKey(object, string, out bool), TypeExtension.GetFieldKey<T>(object, string, out bool), TypeExtension.GetFieldKey(object, Type, string, out bool), ObjectExtension.GetIntPtr(object), ObjectExtension.GetIntPtrInt(object), TypeExtension.GetPropertieFind(object, string, bool), TypeExtension.GetProperties(object), TypeExtension.GetPropertyKey(object, string, out bool), TypeExtension.GetPropertyKey<T>(object, string, out bool), TypeExtension.GetPropertyKey(object, Type, string, out bool), TypeExtension.GetValue(object, PropertyDescriptor), TypeExtension.GetValue(object, string, bool), TypeExtension.GetValue(object, string), ObjectExtension.Read<T>(object, object, int, int), ObjectExtension.Read<T>(object, int, object, int, int), DictionaryExtension.SetDictionary(object, IDictionary<string, object>), TypeExtension.SetFieldKey(object, string, object), TypeExtension.SetFieldKey<T>(object, string, object), TypeExtension.SetFieldKey(object, Type, string, object), TypeExtension.SetPropertyKey(object, string, object), TypeExtension.SetPropertyKey<T>(object, string, object), TypeExtension.SetPropertyKey(object, Type, string, object), TypeExtension.SetValue(object, PropertyDescriptor, object), TypeExtension.SetValue(object, string, object, bool), TypeExtension.SetValue(object, string, object), ObjectExtension.ToBase64String(object), ObjectExtension.ToBytes(object), ObjectExtension.ToBytes(object, out Type), DictionaryExtension.ToDictionary(object), DictionaryExtension.ToDictionary<T>(object), DictionaryExtension.ToIDictionary(object), DictionaryExtension.ToIDictionary<T>(object), ObjectExtension.ToJson(object), ObjectExtension.ToJson(object, JsonSerializerOptions), ObjectExtension.ToJsonWeb(object), ObjectExtension.ToJsonWeb(object, Action<JsonSerializerOptions>), ObjectExtension.ToTryVar<T>(object, T), ObjectExtension.ToVar<T>(object), ObjectExtension.ToVar(object, Type, bool), ObjectExtension.ToVar(object, string), ObjectExtension.ToXml(object)

Remarks

代码由逆血提供支持

Constructors

Message()

初始化参数

csharp
public Message()

Message(bool)

初始化参数

csharp
public Message(bool isSuccess)

Parameters

isSuccess bool

执行结果

Message(bool, string)

初始化参数

csharp
public Message(bool isSuccess, string content)

Parameters

isSuccess bool

执行结果

content string

输出内容

Message(int, string)

初始化参数

csharp
public Message(int messageID, string content)

Parameters

messageID int

消息ID

content string

输出内容

Message(List<DbParameter>)

初始化参数

csharp
public Message(List<DbParameter> prams)

Parameters

prams List<DbParameter>

SQL数据对象

Message(bool, string, ArrayList)

初始化参数

csharp
public Message(bool isSuccess, string content, ArrayList entityList)

Parameters

isSuccess bool

执行结果

content string

输出内容

entityList ArrayList

数据集

Message(int, string, ArrayList)

初始化参数

csharp
public Message(int messageID, string content, ArrayList entityList)

Parameters

messageID int

消息ID

content string

输出内容

entityList ArrayList

数据集

Properties

Content

存储过程返回信息

csharp
public string Content { get; set; }

Property Value

string

EntityList

返回的数据集合

csharp
public ArrayList EntityList { get; set; }

Property Value

ArrayList

MessageID

返回的状态ID

csharp
public int MessageID { get; set; }

Property Value

int

Prams

获取当前存储过程的参数信息

csharp
public List<DbParameter> Prams { get; }

Property Value

List<DbParameter>

Success

执行成功与否(状态)

csharp
public bool Success { get; set; }

Property Value

bool

Methods

AddEntity(ArrayList)

给数据集合赋值

csharp
public void AddEntity(ArrayList entityList)

Parameters

entityList ArrayList

一个数据集合

AddEntity(object)

添加数据到集合

csharp
public void AddEntity(object entity)

Parameters

entity object

数据源

GetEntityList<T>(int)

获取数组下对应下标的数据

csharp
public T GetEntityList<T>(int index)

Parameters

index int

Returns

T

返回结果

Type Parameters

T

返回的指定类型

GetPramsName(string)

根据参数名称获取参数值

csharp
public object GetPramsName(string Name)

Parameters

Name string

参数名称,模糊查询,尽量精确变量名称

Returns

object

返回参数值

ResetEntityList()

清除所有返回的数据集合

csharp
public void ResetEntityList()

基于Apache-2.0协议开源