当前位置: 首页>>代码示例>>C#>>正文


C# NeoDatis类代码示例

本文整理汇总了C#中NeoDatis的典型用法代码示例。如果您正苦于以下问题:C# NeoDatis类的具体用法?C# NeoDatis怎么用?C# NeoDatis使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NeoDatis类属于命名空间,在下文中一共展示了NeoDatis类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ChangedObjectInfo

		public ChangedObjectInfo(NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo oldCi, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo
			 newCi, int fieldIndex, NeoDatis.Odb.Core.Layers.Layer2.Meta.AbstractObjectInfo 
			oldValue, NeoDatis.Odb.Core.Layers.Layer2.Meta.AbstractObjectInfo newValue, int 
			objectRecursionLevel) : this(oldCi, newCi, fieldIndex, oldValue, newValue, null, 
			objectRecursionLevel)
		{
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:ChangedObjectInfo.cs

示例2: Execute

		public override void Execute(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.AttributeValuesMap
			 values)
		{
			System.Decimal n = (System.Decimal)values[attributeName];
			sum = NeoDatis.Tool.Wrappers.NeoDatisNumber.Add(sum, NeoDatis.Odb.Impl.Core.Query.Values.ValuesUtil
				.Convert(n));
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:SumAction.cs

示例3: AbstractStorageEngine

		/// <summary>The database file name</summary>
		/// <></>
		public AbstractStorageEngine(NeoDatis.Odb.Core.Layers.Layer3.IBaseIdentification 
			parameters)
		{
			this.provider = NeoDatis.Odb.OdbConfiguration.GetCoreProvider();
			this.baseIdentification = parameters;
			Init();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:9,代码来源:AbstractStorageEngine.cs

示例4: TransactionIdImpl

		public TransactionIdImpl(NeoDatis.Odb.DatabaseId databaseID, long id1, long id2) : 
			base()
		{
			this.databaseId = databaseID;
			this.id1 = id1;
			this.id2 = id2;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:TransactionIdImpl.cs

示例5: StartReadingObjectInfoWithOid

		public virtual void StartReadingObjectInfoWithOid(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo
			 objectInfo)
		{
			if (oid == null)
			{
				throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Odb.Core.NeoDatisError.CacheNullOid
					);
			}
            object[] objects = null;
            readingObjectInfo.TryGetValue(oid, out objects);
			// TODO : use a value object instead of an array!
			if (objects == null)
			{
				// The key is the oid, the value is an array of 2 objects :
				// 1-the read count, 2-The object info
				// Here we are saying that the object with oid 'oid' is
				// being read for the first time
				object[] values = new object[] { (short)1, objectInfo };
				readingObjectInfo[oid] = values;
			}
			else
			{
				// Here the object is already being read. It is necessary to
				// increase the read count
				short currentReadCount = ((short)objects[0]);
				objects[0] = (short)(currentReadCount + 1);
			}
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:28,代码来源:TmpCache.cs

示例6: Init

		protected virtual void Init(NeoDatis.Odb.Core.Transaction.ISession session, string
			 name)
		{
			this.name = name;
			this.session = session;
			readingObjectInfo = new OdbHashMap<NeoDatis.Odb.OID, object[]>();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:TmpCache.cs

示例7: ODBRuntimeException

		public ODBRuntimeException(NeoDatis.Odb.Core.IError error, string message) : base
            (string.Format("{0}\nVersion={1} , Build={2}, Date={3}, Thread={4}\nError:{5}\nStackTrace:{6}"
			, message1, NeoDatis.Odb.Core.Release.ReleaseNumber, NeoDatis.Odb.Core.Release.ReleaseBuild
			, NeoDatis.Odb.Core.Release.ReleaseDate, NeoDatis.Tool.Wrappers.OdbThread.GetCurrentThreadName
			(), error.ToString(), message))
		{
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:ODBRuntimeException.cs

示例8: ServerFileSystemInterface

		public ServerFileSystemInterface(string name, NeoDatis.Odb.Core.Layers.Layer3.IBaseIdentification
			 parameters, bool canLog, int bufferSize) : base(name, parameters, canLog, bufferSize
			)
		{
			sessionManager = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClientServerSessionManager
				();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:ServerFileSystemInterface.cs

示例9: Player

		public Player(string name, System.DateTime birthDate, NeoDatis.Odb.Test.VO.Sport.Sport
			 favoriteSport)
		{
			this.name = name;
			this.birthDate = birthDate;
			this.favoriteSport = favoriteSport;
		}
开发者ID:ekicyou,项目名称:pasta,代码行数:7,代码来源:Player.cs

示例10: WriteNonNativeObjectInfo

		public override NeoDatis.Odb.OID WriteNonNativeObjectInfo(NeoDatis.Odb.OID existingOid
			, NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo objectInfo, long position
			, bool writeDataInTransaction, bool isNewObject)
		{
			// To enable object auto-reconnect on the server side
			if (NeoDatis.Odb.OdbConfiguration.ReconnectObjectsToSession() && objectInfo.GetHeader
				().GetOid() != null)
			{
				NeoDatis.Odb.Impl.Core.Server.Transaction.ServerSession session = (NeoDatis.Odb.Impl.Core.Server.Transaction.ServerSession
					)sessionManager.GetSession(storageEngine.GetBaseIdentification().GetIdentification
					(), true);
				NeoDatis.Odb.Core.Layers.Layer2.Meta.ObjectInfoHeader oih = session.GetCache().GetObjectInfoHeaderFromOid
					(objectInfo.GetOid(), false);
				// only add in th cache if object does not exist in the cache
				if (oih == null)
				{
					session.GetCache().AddObjectInfo(objectInfo.GetHeader());
				}
			}
			NeoDatis.Odb.OID roid = base.WriteNonNativeObjectInfo(existingOid, objectInfo, position
				, writeDataInTransaction, isNewObject);
			if (objectInfo is NeoDatis.Odb.Core.Server.Layers.Layer2.Meta.ClientNonNativeObjectInfo)
			{
				NeoDatis.Odb.Core.Server.Layers.Layer2.Meta.ClientNonNativeObjectInfo cnnoi = (NeoDatis.Odb.Core.Server.Layers.Layer2.Meta.ClientNonNativeObjectInfo
					)objectInfo;
				NeoDatis.Odb.Impl.Core.Server.Transaction.ServerSession session = (NeoDatis.Odb.Impl.Core.Server.Transaction.ServerSession
					)GetSession();
				session.AssociateIds(roid, cnnoi.GetLocalOid());
				// Adds the abstract Objectinfo in the cache
				session.GetCache().AddObjectInfo(cnnoi.GetHeader());
			}
			return roid;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:33,代码来源:ServerObjectWriter.cs

示例11: SameVmClientEngine

		public SameVmClientEngine(NeoDatis.Odb.Core.Server.Layers.Layer3.IODBServerExt server
			, string baseIdentifier) : base(server.GetParameters(baseIdentifier, true))
		{
			this.server = server;
			// Call super class init
			base.InitODBConnection();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:SameVmClientEngine.cs

示例12: PendingReading

		public PendingReading(int id, NeoDatis.Odb.Core.Layers.Layer2.Meta.ClassInfo ci, 
			NeoDatis.Odb.OID attributeOID) : base()
		{
			this.id = id;
			this.ci = ci;
			this.attributeOID = attributeOID;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:PendingReading.cs

示例13: StoreMessage

		public StoreMessage(string baseId, string connectionId, NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo
			 nnoi, NeoDatis.Odb.OID[] localOids) : base(NeoDatis.Odb.Core.Server.Layers.Layer3.Engine.Command
			.Store, baseId, connectionId)
		{
			this.nnoi = nnoi;
			this.clientIds = localOids;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:StoreMessage.cs

示例14: User

		public User(string name, string email, NeoDatis.Odb.Test.VO.Login.Profile profile
			) : base()
		{
			this.name = name;
			this.email = email;
			this.profile = profile;
		}
开发者ID:ekicyou,项目名称:pasta,代码行数:7,代码来源:User.cs

示例15: Execute

		public override void Execute(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.AttributeValuesMap
			 values)
		{
			System.Collections.Generic.IList<object> l = (System.Collections.Generic.IList<object
				>)values[attributeName];
			int localFromIndex = fromIndex;
			int localEndIndex = fromIndex + size;
			// If not throw exception, we must implement 
			// Index Out Of Bound protection
			if (!throwExceptionIfOutOfBound)
			{
				// Check from index
				if (localFromIndex > l.Count - 1)
				{
					localFromIndex = 0;
				}
				// Check end index
				if (localEndIndex > l.Count)
				{
					localEndIndex = l.Count;
				}
			}
			sublist = new NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI<object
				>(size, GetInstanceBuilder(), ReturnInstance());
			sublist.AddAll(NeoDatis.Tool.Wrappers.List.NeoDatisCollectionUtil.SublistGeneric(
				l, localFromIndex, localEndIndex));
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:27,代码来源:SublistAction.cs


注:本文中的NeoDatis类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。