Open zoujiaqing opened 7 years ago
Code example:
@Entity @Table("f_image_info") struct FImageInfo { @Primarykey(1) string hash; @Field("w",2) int widght; @Field("h",3) int hight; @Field("ext",4) string ext; } ...... auto iter = query.Select("select * from f_image_info LIMIT 10"); foreach(int i,FImageInfo info; iter){ writeln("index : ", i, " hash is : ", info.hash, " w = ", info.widght, " h = ", info.hight, " ext = ", info.ext); }
bug, don't auto tips FImageInfo's vars?
You need to have the entity project have the dub describe operation resolve successfully, otherwise you'll get errors like the above. And for that, all the DUB dependencies need to be available.
entity
dub describe
Code example:
bug, don't auto tips FImageInfo's vars?![screenshot_20161229_183355](https://cloud.githubusercontent.com/assets/444820/21542009/ee6a391c-cdf5-11e6-84bf-904f4c621fd5.png)