示例#1
0
文件: Data.cs 项目: bildukas86/bots
            public List <t> GetHash <t>(string HashVersion = "")
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetHash" + (!string.IsNullOrEmpty(HashVersion) ? "-" + HashVersion : "") }
                };

                return(SQLServer.Query().Retrieve <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#2
0
文件: Data.cs 项目: bildukas86/bots
            public List <t> GetList <t>()
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetList" }
                };

                return(SQLServer.Query().Retrieve <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#3
0
文件: Data.cs 项目: bildukas86/bots
            public t GetByID <t>(int ID)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetByID" },
                    { "ID", ID }
                };

                return(SQLServer.Query().Singular <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#4
0
文件: Data.cs 项目: bildukas86/bots
            public List <t> GetByParentID <t>(string ParentID)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetByParentID" },
                    { "ParentID", ParentID }
                };

                return(SQLServer.Query().Retrieve <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#5
0
文件: Data.cs 项目: bildukas86/bots
            public bool Delete(string ID)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "Delete" },
                    { "ID", ID }
                };

                return(SQLServer.Query().Execute(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#6
0
文件: Data.cs 项目: bildukas86/bots
            public List <t> GetAll <t>(string PartitionKey)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetAll" },
                    { "PartitionKey", PartitionKey }
                };

                return(SQLServer.Query().Retrieve <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#7
0
文件: Data.cs 项目: bildukas86/bots
            public List <t> GetByStatus <t>(string Status)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetByStatus" },
                    { "Status", Status }
                };

                return(SQLServer.Query().Retrieve <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#8
0
文件: Data.cs 项目: bildukas86/bots
            public t GetByID <t>(string PartitionKey, string RowKey)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "GetByID" },
                    { "PartitionKey", PartitionKey },
                    { "RowKey", RowKey }
                };

                return(SQLServer.Query().Singular <t>(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#9
0
文件: Data.cs 项目: bildukas86/bots
            public bool Delete(string PartitionKey, string RowKey)
            {
                Hashtable Parameters = new Hashtable
                {
                    { "Operation", "Delete" },
                    { "PartitionKey", PartitionKey },
                    { "RowKey", RowKey }
                };

                return(SQLServer.Query().Execute(CommandType.StoredProcedure, _CommandText, Parameters));
            }
示例#10
0
文件: Data.cs 项目: bildukas86/bots
 public bool Save <t>(t Item)
 {
     return(SQLServer.Query().Execute(CommandType.StoredProcedure, _CommandText, Niffler.Data.Objects.ToHashTable <t>(Item, "Save")));
 }
示例#11
0
文件: Data.cs 项目: bildukas86/bots
 public List <t> GetByObject <t>(t Item)
 {
     return(SQLServer.Query().Retrieve <t>(CommandType.StoredProcedure, _CommandText, Niffler.Data.Objects.ToHashTable <t>(Item, "GetByObject")));
 }