コード例 #1
0
ファイル: VideoModel.cs プロジェクト: gianglv0212/VMC
 public DataSet Video_filter(string status, Int16 videotype, int optionid, Int16 type, string uid, string name)
 {
     SqlCommand cmd = new SqlCommand("Video_filter");
     cmd.Parameters.Add(new SqlParameter("@status", Common.Common.getDBNull(status, status.GetTypeCode())));
     cmd.Parameters.Add(new SqlParameter("@videotype", Common.Common.getDBNull(videotype, videotype.GetTypeCode())));
     cmd.Parameters.Add(new SqlParameter("@optionid", Common.Common.getDBNull(optionid, optionid.GetTypeCode())));
     cmd.Parameters.Add(new SqlParameter("@type", Common.Common.getDBNull(type, type.GetTypeCode())));
     cmd.Parameters.Add(new SqlParameter("@uid", Common.Common.getDBNull(uid, uid.GetTypeCode())));
     cmd.Parameters.Add(new SqlParameter("@name", Common.Common.getDBNull(name, name.GetTypeCode())));
     return getDataSet(cmd);
 }
コード例 #2
0
        static StackObject *GetTypeCode_15(ILIntepreter __intp, StackObject *__esp, List <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int16 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);

            var result_of_this_method = instance_of_this_method.GetTypeCode();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }