private List <Row> GetRows(TRootEntity rootEntity, Map <TRootEntity> map) { List <Row> rows = new List <Row>(); if (rootEntity == null) { return(rows); } if (map.RootMapRuleBasic.Refer == Refer.Read) { throw new InvalidOperationException($"{typeof(TRootEntity).Name} is not set Writable."); } using (var reader = _databaseAccessor.CreateTableReader(_queryOptions, map.RootMapRuleBasic, out string[] primaryKeys))