Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/SqlTypes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5531/NHibernate/SqlTypes
Added Files:
BinaryBlobSqlType.cs StringClobSqlType.cs
Log Message:
Added SqlTypes so that MsSql could make a image and ntext parameter.
--- NEW FILE: StringClobSqlType.cs ---
using System;
using System.Data;
namespace NHibernate.SqlTypes
{
/// <summary>
/// A SqlType that uses a <see cref="DbType.String "/> to generate a Parameter
/// for the IDriver to write a CLOB value to the database.
/// </summary>
/// <remarks>
/// This is only needed by DataProviders (SqlClient) that need to specify a Size for the
/// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a
/// StringSqlType would work just fine.
/// </remarks>
[Serializable]
public class StringClobSqlType : StringSqlType
{
public StringClobSqlType() : base()
{
}
public StringClobSqlType(int length) : base(length)
{
}
}
}
--- NEW FILE: BinaryBlobSqlType.cs ---
using System;
using System.Data;
namespace NHibernate.SqlTypes
{
/// <summary>
/// A SqlType that uses a <see cref="DbType.Binary"/> to generate a Parameter
/// for the IDriver to write a BLOB value to the database.
/// </summary>
/// <remarks>
/// This is only needed by DataProviders (SqlClient) that need to specify a Size for the
/// IDbDataParameter. Most DataProvider(Oralce) don't need to set the Size so a
/// BinarySqlType would work just fine.
/// </remarks>
[Serializable]
public class BinaryBlobSqlType : BinarySqlType
{
public BinaryBlobSqlType() : base()
{
}
public BinaryBlobSqlType(int length) : base(length)
{
}
}
}
|