Azavea.Open.DAO.OleDb.OleDbAccessDaLayer.StoreRoomMissing C# (CSharp) Méthode

StoreRoomMissing() public méthode

Returns true if you need to call "CreateStoreRoom" before storing any data. This method is "Missing" not "Exists" because implementations that do not use a store room can return "false" from this method without breaking either a user's app or the spirit of the method. Store room typically corresponds to "table".
public StoreRoomMissing ( ClassMapping mapping ) : bool
mapping ClassMapping
Résultat bool
        public override bool StoreRoomMissing(ClassMapping mapping)
        {
            DataTable data = SqlConnectionUtilities.GetSchema(_connDesc, "Tables",
                new string[] {null, null, mapping.Table, null});
            return data.Rows.Count == 0;
        }