func (dnmc *DuplicateNumberMessageCreate) ExecX(ctx context.Context) {
	if err := dnmc.Exec(ctx); err != nil {
		panic(err)
	}
}
ExecX is like Exec, but panics if an error occurs.
package ent
import (
	"context"
	"errors"
	"fmt"
	"entgo.io/contrib/entproto/internal/entprototest/ent/duplicatenumbermessage"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type DuplicateNumberMessageCreate struct {
	config
	mutation *DuplicateNumberMessageMutation
	hooks    []Hook
}
func (dnmc *DuplicateNumberMessageCreate) SetHello(s string) *DuplicateNumberMessageCreate {
	dnmc.mutation.SetHello(s)
	return dnmc
}
func (dnmc *DuplicateNumberMessageCreate) SetWorld(s string) *DuplicateNumberMessageCreate {
	dnmc.mutation.SetWorld(s)
	return dnmc
}
func (dnmc *DuplicateNumberMessageCreate) Mutation() *DuplicateNumberMessageMutation {
	return dnmc.mutation
}
func (dnmc *DuplicateNumberMessageCreate) Save(ctx context.Context) (*DuplicateNumberMessage, error) {
	var (
		err  error
		node *DuplicateNumberMessage
	)
	if len(dnmc.hooks) == 0 {
		if err = dnmc.check(); err != nil {
			return nil, err
		}
		node, err = dnmc.sqlSave(ctx)
	} else {
		var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
			mutation, ok := m.(*DuplicateNumberMessageMutation)
			if !ok {
				return nil, fmt.Errorf("unexpected mutation type %T", m)
			}
			if err = dnmc.check(); err != nil {
				return nil, err
			}
			dnmc.mutation = mutation
			if node, err = dnmc.sqlSave(ctx); err != nil {
				return nil, err
			}
			mutation.id = &node.ID
			mutation.done = true
			return node, err
		})
		for i := len(dnmc.hooks) - 1; i >= 0; i-- {
			if dnmc.hooks[i] == nil {
				return nil, fmt.Errorf("ent: uninitialized hook (forgotten import ent/runtime?)")
			}
			mut = dnmc.hooks[i](mut)
		}
		if _, err := mut.Mutate(ctx, dnmc.mutation); err != nil {
			return nil, err
		}
	}
	return node, err
}
func (dnmc *DuplicateNumberMessageCreate) SaveX(ctx context.Context) *DuplicateNumberMessage {
	v, err := dnmc.Save(ctx)
	if err != nil {
		panic(err)
	}
	return v
}
func (dnmc *DuplicateNumberMessageCreate) Exec(ctx context.Context) error {
	_, err := dnmc.Save(ctx)
	return err
}