// Register dao models for db
Register dao models for db
// Register dao models for db
func (c *CoreDB) RegisterModels(modelsMap map[string]DbModel) error {
	if len(modelsMap) == 0 {
		return Error{
			Reason: errRegisterModelEmpty,
		}
	}
	c.models = modelsMap
	return nil
}
func ( c * CoreDB ) RegisterModels ( modelsMap map [ string ] DbModel ) error { if len ( modelsMap ) == 0 { return Error { Reason : errRegisterModelEmpty , } } c . models = modelsMap return nil }
Register dao models for db
Register dao models for db