Smart-Kit / SmartSql-Docs

SmartSql doc
http://smartsql.net/
Apache License 2.0
7 stars 10 forks source link

SmartSql-Docs/docs/dyrepository/ 示例代码错误。 #4

Closed fanpan26 closed 5 years ago

fanpan26 commented 5 years ago
       public int GetById(int id)
        {
            return activityRepository.Insert(id);
        }

应该为

       public int GetById(int id)
        {
            return activityRepository.Query(id);
        }
ElderJames commented 5 years ago

ok,感谢反馈

Ahoo-Wang commented 5 years ago

这个也是错的,应该是 activityRepository.GetById(id); 返回值为对应实体。

Ahoo-Wang commented 5 years ago

@fanpan26 可以修复一下,提交PR么

fanpan26 commented 5 years ago

@Ahoo-Wang OK,以后找到了直接提交pr

Ahoo-Wang commented 5 years ago

@fanpan26 thx.