Beispiel #1
0
        public HickoryIT.Shared.Data.Type Add(HickoryIT.Shared.Data.Type type)
        {
            HickoryIT.Shared.Data.Type t = Transaction<HickoryIT.Shared.Data.Type, HickoryIT.Shared.Data.Type>(add, type);

            if (t != null)
                allTypes.Add(t);

            return t;
        }
 public DefaultFunctionAdapter(HickoryIT.Core.Information.IInformationAdapter information_adapter)
 {
     this.information_adapter = information_adapter;
 }
Beispiel #3
0
 public GetCategory(HickoryIT.Core.Information.IInformationAdapter information_adapter)
     : base(information_adapter)
 {
 }
 public HickoryIT.Shared.Data.Type Add(HickoryIT.Shared.Data.Type type)
 {
     return AddType().Add(type);
 }
Beispiel #5
0
        private HickoryIT.Shared.Data.Type add(Connection connection, HickoryIT.Shared.Data.Type type)
        {
            type.Id = connection.InsertType(type);

            return type;
        }
Beispiel #6
0
 public int InsertType(HickoryIT.Shared.Data.Type type)
 {
     string values = type.Id + @"', '" + type.Name + @"', '" + type.Description + @"', '" + type.Category.Id;
     return Insert("Type", "Id, Name, Description, Category_Id", values);
 }