Book a Demo

Author Topic: SQLRepository  (Read 2733 times)

Michael

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
SQLRepository
« on: May 14, 2013, 12:42:57 am »
are there   packages for SQLApi library to deal with this method

public bool AllowDuplicates
{
   get
     {
       Throw new NotImplementedException();
      }

   set
     {
       Throw new NotImplementedException();
      }
}
« Last Edit: May 14, 2013, 12:44:02 am by MichaelRahn »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SQLRepository
« Reply #1 on: May 14, 2013, 04:28:04 pm »
Do you mean you need the implementation for the property AllowDuplicates for EAAttribute.cs

I guess if it isn't there you'll need to write it yourself. But it can't be that hard. There a column in the t_Attribute table called AllowDuplicates. I guess all you need to do is set it to 0 or 1.

If I were you I would try this as an implementation of the getter:

Code: [Select]
        get
            {
                return HelperMethods.getXMLNodeContentFromSQLQueryString(xmlAttributeEntry, "AllowDuplicates")[0];
            }

I haven't seen any implementations of setter methods, but I guess they should be in there somewhere.

Geert