Example #1
0
 public void Boolean(int i, string name)
 {
     Column(name, Name(i));
     var ext = new ExtType {Type = DbCommonType.Boolean};
     _parameters.Add(ext);
 }
Example #2
0
        public string WhereParameter(int i, DbType type)
        {
            var ext = new ExtType();

            if (type == DbType.Binary)
                ext.Type = DbCommonType.LongBinary;
            else if (type == DbType.Xml)
                ext.Type = DbCommonType.Xml;
            else if (type == DbType.Boolean)
                ext.Type = DbCommonType.Boolean;
            else if (type == DbType.Guid)
                ext.Type = DbCommonType.Guid;

            ext.DBType = type;
            _parameters.Add(ext);
            return Name(i);
        }
Example #3
0
        public void Parameter(int i, string name, DbType type)
        {
            Column(name, Name(i));
            var ext = new ExtType();

            if (type == DbType.Binary)
                ext.Type = DbCommonType.LongBinary;
            else if (type == DbType.Xml)
                ext.Type = DbCommonType.Xml;
            else if (type == DbType.Boolean)
                ext.Type = DbCommonType.Boolean;
            else if (type == DbType.Guid)
                ext.Type = DbCommonType.Guid;

            ext.DBType = type;
            _parameters.Add(ext);
        }
Example #4
0
 public void VarBinary(int i, string name)
 {
     Column(name, Name(i));
     var ext = new ExtType {Type = DbCommonType.LongBinary};
     _parameters.Add(ext);
 }
Example #5
0
 public void LongString(int i, string name)
 {
     Column(name, Name(i));
     var ext = new ExtType {Type = DbCommonType.LongChar};
     _parameters.Add(ext);
 }