SmartDeviceProject1.SqlCeStorageHandler.SqlCeStorageHandler C# (CSharp) Method

SqlCeStorageHandler() public method

public SqlCeStorageHandler ( ) : System
return System
        public SqlCeStorageHandler()
        {
            _insertCommands.Add(typeof (Item), InsertItem);
            _insertCommands.Add(typeof(List), InsertList);
            _insertCommands.Add(typeof (TagItemMapping), InsertTagItemMapping);
            _insertCommands.Add(typeof(Tag), InsertTag);
            _insertCommands.Add(typeof(Status), InsertStatus);
            _insertCommands.Add(typeof(Priority), InsertPriority);
            _insertCommands.Add(typeof(User), InsertUser);

            _updateCommands.Add(typeof(Item), UpdateItem);
            _updateCommands.Add(typeof(List), UpdateList);
            _updateCommands.Add(typeof(Tag), UpdateTag);
            _updateCommands.Add(typeof(Status), UpdateStatus);
            _updateCommands.Add(typeof(Priority), UpdatePriority);

            // These delete commands are used for saving items from a download response.
            _deleteCommands.Add(typeof(Item), DeleteItemUsingMetadataId);
            _deleteCommands.Add(typeof(List), DeleteListUsingMetadataId);
            _deleteCommands.Add(typeof(TagItemMapping), DeleteTagItemMapping);
            _deleteCommands.Add(typeof(Tag), DeleteTag);
            _deleteCommands.Add(typeof(Status), DeleteStatus);
            _deleteCommands.Add(typeof(Priority), DeletePriority);

            _tombstoneCommands.Add(typeof(Item), TombstoneItem);
            _tombstoneCommands.Add(typeof(List), TombstoneList);
            _tombstoneCommands.Add(typeof(TagItemMapping), TombstoneTagItemMapping);

            _getCommands.Add(typeof(Item), ItemExists);
            _getCommands.Add(typeof(List), ListExists);
            _getCommands.Add(typeof(TagItemMapping), TagItemMappingExists);
            _getCommands.Add(typeof(Tag), TagExists);
            _getCommands.Add(typeof(Status), StatusExists);
            _getCommands.Add(typeof(Priority), PriorityExists);
            _getCommands.Add(typeof(User), UserExists);
        }