private void BindIdentifierCollectionSecondPass(HbmIdbag idbagMapping, IdentifierCollection model,
			IDictionary<string, PersistentClass> persitentClasses, IDictionary<string, MetaAttribute> inheritedMetas)
		{
			BindCollectionSecondPass(idbagMapping, model, persitentClasses, inheritedMetas);

			var id = new SimpleValue(model.CollectionTable);
			new ValuePropertyBinder(id, Mappings).BindSimpleValue(idbagMapping.collectionid, IdentifierCollection.DefaultIdentifierColumnName);
			model.Identifier = id;
			new IdGeneratorBinder(Mappings).BindGenerator(id, idbagMapping.collectionid.generator);
			id.Table.SetIdentifierValue(id);
		}
		private void AddIdentifierCollectionSecondPass(HbmIdbag idbagMapping, IdentifierCollection model, IDictionary<string, MetaAttribute> inheritedMetas)
		{
			mappings.AddSecondPass(delegate(IDictionary<string, PersistentClass> persistentClasses)
				{
					PreCollectionSecondPass(model);
					BindIdentifierCollectionSecondPass(idbagMapping, model, persistentClasses, inheritedMetas);
					PostCollectionSecondPass(model);
				});
		}
Пример #3
0
			public IdentifierCollectionSecondPass( XmlNode node, Mappings mappings, IdentifierCollection collection )
				: base( node, mappings, collection )
			{
			}
Пример #4
0
		public static void BindIdentifierCollectionSecondPass( XmlNode node, IdentifierCollection model, IDictionary persitentClasses, Mappings mappings )
		{
			BindCollectionSecondPass( node, model, persitentClasses, mappings );

			XmlNode subnode = node.SelectSingleNode( nsCollectionId, nsmgr );
			SimpleValue id = new SimpleValue( model.CollectionTable );
			BindSimpleValue( subnode, id, false, IdentifierCollection.DefaultIdentifierColumnName, mappings );
			model.Identifier = id;
			MakeIdentifier( subnode, id, mappings );
		}
Пример #5
0
		private void BindIdentifierCollectionSecondPass(XmlNode node, IdentifierCollection model,
			IDictionary<string, PersistentClass> persitentClasses)
		{
			BindCollectionSecondPass(node, model, persitentClasses);

			XmlNode subnode = node.SelectSingleNode(HbmConstants.nsCollectionId, namespaceManager);
			SimpleValue id = new SimpleValue(model.CollectionTable);
			BindSimpleValue(subnode, id, false, IdentifierCollection.DefaultIdentifierColumnName);
			model.Identifier = id;
			MakeIdentifier(subnode, id);
		}
Пример #6
0
		private void AddIdentifierCollectionSecondPass(XmlNode node, IdentifierCollection model)
		{
			mappings.AddSecondPass(delegate(IDictionary<string, PersistentClass> persistentClasses)
				{
					PreCollectionSecondPass(model);
					BindIdentifierCollectionSecondPass(node, model, persistentClasses);
					PostCollectionSecondPass(model);
				});
		}