override public object Eval (DataRow row)
{
string str = (string)base.Eval (row);
- object x = start.Eval (row);
int istart = Convert.ToInt32 (start.Eval (row));
int ilen = Convert.ToInt32 (len.Eval (row));
(CommandText.ToUpper().IndexOf("INSERT")!=-1) ||
(CommandText.ToUpper().IndexOf("DELETE")!=-1)) {
int numrows = 0;
- OdbcReturn ret = libodbc.SQLRowCount (hstmt, ref numrows);
records = numrows;
} else
records = -1;
case OdbcType.Binary :
bufsize = col.MaxLength;
buffer = new byte [bufsize];
- long read = GetBytes (i, 0, buffer, 0, bufsize);
ret = OdbcReturn.Success;
DataValue = buffer;
break;
{
TdsDataColumn column;
TdsColumnType ctype;
- string datatypeName;
int csize;
short precision;
short scale;
#endif
object GetSqlValue (int i)
{
- int csize;
- short precision, scale;
- TdsColumnType ctype;
- TdsDataColumn column;
-
object value = GetValue (i);
//Console.WriteLine ("Type of value: {0}", value.GetType ());
private CodeTypeDeclaration GenerateTableAdapterType (TableAdapterSchemaInfo taInfo)
{
- string qualifiedBaseClassName;
- Type type = null;
- int fIndex = -1;
-
CodeTypeDeclaration t = new CodeTypeDeclaration ();
t.Name = opts.TableAdapterName (taInfo.Name);
t.BaseTypes.Add (TypeRef (taInfo.BaseClass));
CodeExpression expr1;
int idx = 0;
string tmp;
- DbType dbType = DbType.DateTime;
+
foreach (DbParameter param in cmd.Parameters) {
if (param.Direction != ParameterDirection.ReturnValue) {
if (param.ParameterName[0] == '@')
/// </summary>
public bool IsNull (DataColumn column, DataRowVersion version)
{
- object o = this [column, version];
return column.DataContainer.IsNull (IndexFromVersion (version));
}
\r
SplitColumns (table, out atts, out elements, out simple);\r
//sort out the namespacing\r
- int relationCount = table.ParentRelations.Count;\r
\r
foreach (DataRow row in rows) {\r
if (skipIfNested) {\r
\r
private string _displayExpression;\r
private PropertyCollection _extendedProperties;\r
- private bool _hasErrors;\r
private CultureInfo _locale;\r
private int _minimumCapacity;\r
private string _nameSpace;\r
private DataRowCollection _rows;\r
private ISite _site;\r
private string _tableName;\r
- private bool _containsListCollection;\r
- private string _encodedTableName;\r
internal bool _duringDataLoad;\r
internal bool _nullConstraintViolationDuringDataLoad;\r
private bool dataSetPrevEnforceConstraints;\r
- private bool dataTablePrevEnforceConstraints;\r
private bool enforceConstraints = true;\r
private DataRowBuilder _rowBuilder;\r
private ArrayList _indexes;\r
Columns [0].Unique = false;
_belongsToCollection = false;
- Index index = Index;
Index = null;
}
continue;\r
\r
hasAttributes = true;\r
- DataColumn col = GetMappedColumn (table,\r
- XmlHelper.Decode (attr.LocalName),\r
- attr.Prefix,\r
- attr.NamespaceURI,\r
- MappingType.Attribute,\r
- null);\r
}\r
\r
foreach (XmlNode n in el.ChildNodes) {\r
reader.Skip ();\r
} \r
row [col] = obj;\r
- } catch (XmlException e) {\r
+ } catch (XmlException) {\r
#endif\r
// XML is not in accordance to expected standards, try reading the content as an xml doc\r
row [col] = reader.ReadInnerXml ();\r
#if NET_2_0\r
- } catch (InvalidOperationException e) {\r
+ } catch (InvalidOperationException) {\r
\r
row [col] = reader.ReadInnerXml ();\r
}\r
private void ProcessDbSource (XmlElement el)
{
-
- string cmdType;
string tmp = null;
XmlElement e;