like the upstairsif you want query on database,then: select count(*) form tableName where fieldName="asd"if you judge out: for(EntityClass aa in EntityCollection){ if(aa.fieldName=="asd"){ return true; } }
if else 的条件也是要去数据库匹配的啊。
yes take your content to database with a function,match it with “select count(*) form tableName where fieldName="asd" ” if count(*)>0 then haved the same name else none.
select count(*) form tableName where fieldName="asd"if you judge out:
for(EntityClass aa in EntityCollection){
if(aa.fieldName=="asd"){
return true;
}
}
take your content to database with a function,match it with “select count(*) form tableName where fieldName="asd" ”
if count(*)>0 then haved the same name
else none.