Ejemplo n.º 1
0
        private static SqlLongString CreateData(IQuery query, byte[] data)
        {
            var lob = query.Session.CreateLargeObject(2048, true);

            using (var stream = new ObjectStream(lob)) {
                stream.Write(data, 0, data.Length);
                stream.Flush();
            }

            lob.Complete();
            return(SqlLongString.Ascii(lob));
        }
Ejemplo n.º 2
0
        private static SqlLongString CreateBio(IQuery query, string text)
        {
            var lob = query.Session.CreateLargeObject(2048, true);

            using (var stream = new ObjectStream(lob)) {
                using (var streamWriter = new StreamWriter(stream, Encoding.ASCII)) {
                    streamWriter.Write(text);
                    streamWriter.Flush();
                }
            }

            lob.Complete();
            return(SqlLongString.Ascii(lob));
        }
Ejemplo n.º 3
0
 private SqlLongString CreateBio(string text)
 {
     return(SqlLongString.Ascii(AdminQuery, text));
 }
Ejemplo n.º 4
0
        private SqlLongString CreateClobData(IQuery query)
        {
            const string text = "One simple small string to trigger the LOB data for the test";

            return(SqlLongString.Ascii(query, text));
        }