public static void AddKeyProperty(this compositeid theCompositeId, keyproperty keyProperty)
        {
            if (theCompositeId.Items == null)
                theCompositeId.Items = new object[0];

            object[] items = theCompositeId.Items;
            Array.Resize(ref items, theCompositeId.Items.Length + 1);
            items[items.Length - 1] = keyProperty;
            theCompositeId.Items = items;
        }
Пример #2
0
 private Property CreateProperty(Entity newEntity, Mapping mapping, keyproperty hProperty)
 {
     if (hProperty.column1 != null)
         return CreateProperty(newEntity, mapping, hProperty.type1, hProperty.name, hProperty.column1, hProperty.length);
     else
         return CreateProperty(newEntity, mapping, hProperty.type1, hProperty.name, hProperty.column[0].name, hProperty.length);
 }