func AddTownHook(hookPoint boil.HookPoint, townHook TownHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		townBeforeInsertHooks = append(townBeforeInsertHooks, townHook)
	case boil.BeforeUpdateHook:
		townBeforeUpdateHooks = append(townBeforeUpdateHooks, townHook)
	case boil.BeforeDeleteHook:
		townBeforeDeleteHooks = append(townBeforeDeleteHooks, townHook)
	case boil.BeforeUpsertHook:
		townBeforeUpsertHooks = append(townBeforeUpsertHooks, townHook)
	case boil.AfterInsertHook:
		townAfterInsertHooks = append(townAfterInsertHooks, townHook)
	case boil.AfterSelectHook:
		townAfterSelectHooks = append(townAfterSelectHooks, townHook)
	case boil.AfterUpdateHook:
		townAfterUpdateHooks = append(townAfterUpdateHooks, townHook)
	case boil.AfterDeleteHook:
		townAfterDeleteHooks = append(townAfterDeleteHooks, townHook)
	case boil.AfterUpsertHook:
		townAfterUpsertHooks = append(townAfterUpsertHooks, townHook)
	}
}
// AddTownHook registers your hook function for all future operations.
AddTownHook registers your hook function for all future operations.
// AddTownHook registers your hook function for all future operations .
func AddTownHook(hookPoint boil.HookPoint, townHook TownHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		townBeforeInsertHooks = append(townBeforeInsertHooks, townHook)
	case boil.BeforeUpdateHook:
		townBeforeUpdateHooks = append(townBeforeUpdateHooks, townHook)
	case boil.BeforeDeleteHook:
		townBeforeDeleteHooks = append(townBeforeDeleteHooks, townHook)
	case boil.BeforeUpsertHook:
		townBeforeUpsertHooks = append(townBeforeUpsertHooks, townHook)
	case boil.AfterInsertHook:
		townAfterInsertHooks = append(townAfterInsertHooks, townHook)
	case boil.AfterSelectHook:
		townAfterSelectHooks = append(townAfterSelectHooks, townHook)
	case boil.AfterUpdateHook:
		townAfterUpdateHooks = append(townAfterUpdateHooks, townHook)
	case boil.AfterDeleteHook:
		townAfterDeleteHooks = append(townAfterDeleteHooks, townHook)
	case boil.AfterUpsertHook:
		townAfterUpsertHooks = append(townAfterUpsertHooks, townHook)
	}
}
func AddTownHook ( hookPoint boil . HookPoint , townHook TownHook ) { switch hookPoint { case boil . BeforeInsertHook : townBeforeInsertHooks = append ( townBeforeInsertHooks , townHook ) case boil . BeforeUpdateHook : townBeforeUpdateHooks = append ( townBeforeUpdateHooks , townHook ) case boil . BeforeDeleteHook : townBeforeDeleteHooks = append ( townBeforeDeleteHooks , townHook ) case boil . BeforeUpsertHook : townBeforeUpsertHooks = append ( townBeforeUpsertHooks , townHook ) case boil . AfterInsertHook : townAfterInsertHooks = append ( townAfterInsertHooks , townHook ) case boil . AfterSelectHook : townAfterSelectHooks = append ( townAfterSelectHooks , townHook ) case boil . AfterUpdateHook : townAfterUpdateHooks = append ( townAfterUpdateHooks , townHook ) case boil . AfterDeleteHook : townAfterDeleteHooks = append ( townAfterDeleteHooks , townHook ) case boil . AfterUpsertHook : townAfterUpsertHooks = append ( townAfterUpsertHooks , townHook ) } }
AddTownHook registers your hook function for all future operations.
AddTownHook registers your hook function for all future operations .