public SqlConnection(ulong conn, uint state, ClrDateTime createTime, uint pooledCount, int isOpen, uint asyncCommandCount, ulong cmdAddr, string cmdText, uint timeout) { ConnectionAddress = conn; State = (int)state; CreateTime = DateTime.SpecifyKind(new DateTime((long)createTime.Ticks), (DateTimeKind)createTime.Kind); PooledCount = (int)pooledCount; IsOpen = (isOpen != 0); AsyncCommandCount = (int)asyncCommandCount; CommandAddress = cmdAddr; CommandText = cmdText; CommandTimeout = (int)timeout; }
public static void TestClrDateTimeGetMutatorMinNullOptional() { const Dhgms.Nucleotide.Model.Info.CollectionType CollectionType = Dhgms.Nucleotide.Model.Info.CollectionType.GenericLinkedList; const string Name = "Name"; const string Description = "Description"; const bool Optional = true; ClrDateTime instance = new ClrDateTime( CollectionType, Name, Description, Optional, null, DateTime.MaxValue, false, null); Console.Write(instance.GetMutator()); }
public void OnConnection(ulong conn, uint state, ClrDateTime createTime, uint pooledCount, int isOpen, uint asyncCommandCount, ulong cmd, string cmdText, uint timeout) { _currConn = new SqlConnection(conn, state, createTime, pooledCount, isOpen, asyncCommandCount, cmd, cmdText, timeout); _currPool.Connections.Add(_currConn); }