static void Main(string[] args) { dbinit.db = new SqlConnection("Data Source=sqlwindraw.fabrikon.ru;Initial Catalog=ecad_FO;User ID=windraw;Password=Ffff1234"); dbconn._db = new dbconn(); SettingCustomtableContainer container = SettingCustomtableContainer.CreateContainer(); int defaultcolorId = container.GetDefaultColorIdByProfileId(1); int[] colorgroupIds = container.GetColorGroupIdsByProfileId(1); }
public static int[] GetColorGroupIdsByProfileId(int profileId) { var container = SettingCustomtableContainer.CreateContainer(); return(container.GetColorGroupIdsByProfileId(profileId)); }
public static int GetDefaultColorIdByProfileId(int profileId) { var container = SettingCustomtableContainer.CreateContainer(); return(container.GetDefaultColorIdByProfileId(profileId)); }