• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# NeoDatis类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ChangedObjectReferenceAttributeAction

		public ChangedObjectReferenceAttributeAction(long position, NeoDatis.Odb.Core.Layers.Layer2.Meta.ObjectReference
			 oref, int recursionLevel)
		{
			this.updatePosition = position;
			this.objectReference = oref;
			this.recursionLevel = recursionLevel;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:ChangedObjectReferenceAttributeAction.cs


示例17: ConnectMessageResponse

		public ConnectMessageResponse(string baseId, string connectionId, NeoDatis.Odb.Core.Layers.Layer2.Meta.MetaModel
			 metaModel, NeoDatis.Odb.TransactionId transactionId) : base(NeoDatis.Odb.Core.Server.Layers.Layer3.Engine.Command
			.Connect, baseId, connectionId)
		{
			this.metaModel = metaModel;
			this.transactionId = transactionId;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:7,代码来源:ConnectMessageResponse.cs


示例18: UpdateNonNativeObjectInfo

		public override NeoDatis.Odb.OID UpdateNonNativeObjectInfo(NeoDatis.Odb.Core.Layers.Layer2.Meta.NonNativeObjectInfo
			 nnoi, bool forceUpdate)
		{
			// To enable object auto-reconnect on the server side
			if (NeoDatis.Odb.OdbConfiguration.ReconnectObjectsToSession() && nnoi.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
					(nnoi.GetOid(), false);
				// only add in th cache if object does not exist in the cache
				if (oih == null)
				{
					session.GetCache().AddObjectInfo(nnoi.GetHeader());
				}
			}
			NeoDatis.Odb.OID roid = base.UpdateNonNativeObjectInfo(nnoi, forceUpdate);
			if (nnoi 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
					)nnoi;
				NeoDatis.Odb.Impl.Core.Server.Transaction.ServerSession session = (NeoDatis.Odb.Impl.Core.Server.Transaction.ServerSession
					)GetSession();
				session.AssociateIds(cnnoi.GetOid(), cnnoi.GetLocalOid());
			}
			return roid;
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:29,代码来源:ServerObjectWriter.cs


示例19: SetChildAt

		public override void SetChildAt(NeoDatis.Btree.IBTreeNode child, int index)
		{
			children[index] = child;
			if (child != null)
			{
				child.SetParent(this);
			}
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:InMemoryBTreeNodeSingleValuePerkey.cs


示例20: DefaultServerIdManager

		public DefaultServerIdManager(NeoDatis.Odb.Core.Layers.Layer3.IObjectWriter objectWriter
			, NeoDatis.Odb.Core.Layers.Layer3.IObjectReader objectReader, long currentBlockIdPosition
			, int currentBlockIdNumber, NeoDatis.Odb.OID currentMaxId) : base(objectWriter, 
			objectReader, currentBlockIdPosition, currentBlockIdNumber, currentMaxId)
		{
			sessionManager = NeoDatis.Odb.OdbConfiguration.GetCoreProvider().GetClientServerSessionManager
				();
		}
开发者ID:Orvid,项目名称:SQLInterfaceCollection,代码行数:8,代码来源:DefaultServerIdManager.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# NestedPaneCollection类代码示例发布时间:2022-05-24
下一篇:
C# NeedPaintHandler类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap